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:
Cuong Manh Le
2025-02-04 13:33:34 +07:00
committed by Cuong Manh Le
parent f57972ead7
commit eb27d1482b
3 changed files with 9 additions and 9 deletions
+2
View File
@@ -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)