cmd/cli: add an internal warn level log writer

So important events like upstream online/offline/failed will be
preserved, and submitted to the server as necessary.
This commit is contained in:
Cuong Manh Le
2025-01-13 20:26:33 +07:00
committed by Cuong Manh Le
parent a95d50c0af
commit 8bcbb9249e
2 changed files with 37 additions and 6 deletions
+1
View File
@@ -102,6 +102,7 @@ type prog struct {
queryFromSelfMap sync.Map
initInternalLogWriterOnce sync.Once
internalLogWriter *logWriter
internalWarnLogWriter *logWriter
internalLogSent time.Time
runningIface string
requiredMultiNICsConfig bool