Skip to content

Commit

Permalink
Moved prefix to the correct location
Browse files Browse the repository at this point in the history
  • Loading branch information
SindreBrurberg committed Nov 2, 2021
1 parent ae3b9ee commit 5a0e86a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ func main() {
loadEnv()
logDir := os.Getenv("log_dir")
if logDir != "" {
log.SetPrefix("vili")
cloaser := log.SetOutputFolder(logDir)
if cloaser != nil {
log.Fatal("Unable to sett logdir")
}
defer cloaser()
log.SetPrefix("vili")
}
err := verifyConfig()
if err != nil {
Expand Down

0 comments on commit 5a0e86a

Please sign in to comment.