cmd/ctrld: remove prefix main field

While at it, also make init logging with empty log path when running
start command.

Updates #55
This commit is contained in:
Cuong Manh Le
2023-02-10 23:49:12 +07:00
committed by Cuong Manh Le
parent bac6810956
commit 35c890048b
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ func initLogging() {
})
writers = append(writers, consoleWriter)
multi := zerolog.MultiLevelWriter(writers...)
mainLog = mainLog.Output(multi).With().Timestamp().Str("prefix", "main").Logger()
mainLog = mainLog.Output(multi).With().Timestamp().Logger()
if verbose > 0 || isLog {
proxyLog = proxyLog.Output(multi).With().Timestamp().Logger()
// TODO: find a better way.