mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-07-04 01:07:49 +02:00
cmd/cli: use warn level for network changes logging
So these events will be recorded separately from normal runtime log, making troubleshooting later more easily. While at it, only update ctrld.ProxyLogger for runCmd, it's the only one which needs to log the query when proxying requests.
This commit is contained in:
committed by
Cuong Manh Le
parent
f57972ead7
commit
eb27d1482b
@@ -143,8 +143,6 @@ func initLoggingWithBackup(doBackup bool) []io.Writer {
|
||||
multi := zerolog.MultiLevelWriter(writers...)
|
||||
l := mainLog.Load().Output(multi).With().Logger()
|
||||
mainLog.Store(&l)
|
||||
// TODO: find a better way.
|
||||
ctrld.ProxyLogger.Store(&l)
|
||||
|
||||
zerolog.SetGlobalLevel(zerolog.NoticeLevel)
|
||||
logLevel := cfg.Service.LogLevel
|
||||
|
||||
Reference in New Issue
Block a user