mirror of
https://github.com/Control-D-Inc/ctrld.git
synced 2026-09-04 13:36:35 +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:
@@ -267,6 +267,8 @@ func run(appCallback *AppCallback, stopCh chan struct{}) {
|
||||
// Log config do not have thing to validate, so it's safe to init log here,
|
||||
// so it's able to log information in processCDFlags.
|
||||
logWriters := initLogging()
|
||||
// TODO: find a better way.
|
||||
ctrld.ProxyLogger.Store(mainLog.Load())
|
||||
|
||||
// Initializing internal logging after global logging.
|
||||
p.initInternalLogging(logWriters)
|
||||
|
||||
Reference in New Issue
Block a user