Skip to content

Commit

Permalink
create seperate object for logging
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperspencer committed Jan 9, 2024
1 parent 5fb61a2 commit b1298c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -619,11 +619,14 @@ func main() {

confs = append(confs, readConfigFile(f)...)
}
if confs[0].Log.Timeformat == "" {
confs[0].Log.Timeformat = timeformat

logConf := confs[0].Log

if logConf.Timeformat == "" {
logConf.Timeformat = timeformat
}

log.Logger = logger.CreateLogger(confs[0].Log)
log.Logger = logger.CreateLogger(logConf)

validcron := confs[0].HasValidCronSpec()

Expand Down

0 comments on commit b1298c1

Please sign in to comment.