Skip to content

Commit

Permalink
add better logs
Browse files Browse the repository at this point in the history
  • Loading branch information
mlsmaycon committed Sep 12, 2024
1 parent 94bf102 commit 2b6de4a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion util/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ func getLogMaxSize() int {
if sizeVar, ok := os.LookupEnv("NB_LOG_MAX_SIZE_MB"); ok {
size, err := strconv.ParseInt(sizeVar, 10, 64)
if err != nil {
log.Errorf("Failed parsing log-size %s: %s", sizeVar, err)
log.Errorf("Failed parsing log-size %s: %s. Should be just an integer", sizeVar, err)
return defaultLogSize
}

log.Infof("Setting log file max size to %d MB", size)

return int(size)
}
return defaultLogSize
Expand Down

0 comments on commit 2b6de4a

Please sign in to comment.