Windows: fix UTC time logging

This commit is contained in:
Nicola Murino
2021-11-06 16:27:01 +01:00
parent 094ee1522e
commit dfcfcee208
5 changed files with 11 additions and 2 deletions

View File

@@ -31,6 +31,7 @@ Please take a look at the usage below to customize the startup options`,
LogMaxAge: logMaxAge,
LogCompress: logCompress,
LogVerbose: logVerbose,
LogUTCTime: logUTCTime,
Shutdown: make(chan bool),
}
winService := service.WindowsService{
@@ -87,6 +88,9 @@ func getCustomServeFlags() []string {
if logVerbose != defaultLogVerbose {
result = append(result, "--"+logVerboseFlag+"=false")
}
if logUTCTime != defaultLogUTCTime {
result = append(result, "--"+logUTCTimeFlag+"=true")
}
if logCompress != defaultLogCompress {
result = append(result, "--"+logCompressFlag+"=true")
}