all: some improvements for better troubleshooting

- Include version/OS information when logging
 - Make time field human readable in log file
 - Force root privilege when running status command on darwin

Updates #34
This commit is contained in:
Cuong Manh Le
2023-03-29 12:36:19 +07:00
committed by Cuong Manh Le
parent 9927803497
commit b3a342bc44
4 changed files with 39 additions and 9 deletions
-1
View File
@@ -73,7 +73,6 @@ func initLogging() {
}
writers = append(writers, logFile)
}
zerolog.TimeFieldFormat = zerolog.TimeFormatUnixMs
consoleWriter := zerolog.NewConsoleWriter(func(w *zerolog.ConsoleWriter) {
w.TimeFormat = time.StampMilli
})