Skip to content

Commit

Permalink
fix unable to set log path in time (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
lr1980 authored Mar 5, 2024
1 parent 5207b3a commit 7fa5ba8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Icinga2/opsgenie-icinga2/send2opsgenie.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ func main() {
} else {
panic(err)
}
logger = configureLogger()

errFromConf := readConfigurationFileFromOECConfig(configPath2)

Expand All @@ -58,6 +57,8 @@ func main() {
version := flag.String("v", "", "")
parseFlags()

logger = configureLogger()

printConfigToLog()

if *version != "" {
Expand Down Expand Up @@ -432,4 +433,4 @@ func parseFlags() map[string]string {
}

return parameters
}
}

0 comments on commit 7fa5ba8

Please sign in to comment.