mirror of
https://github.com/bbernhard/signal-cli-rest-api.git
synced 2026-05-29 15:14:28 +00:00
improved log messages
This commit is contained in:
parent
f79c5c2598
commit
6bd7b66e1e
@ -159,7 +159,7 @@ func main() {
|
|||||||
p := cron.NewParser(cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow)
|
p := cron.NewParser(cron.Minute | cron.Hour | cron.Dom | cron.Month | cron.Dow)
|
||||||
schedule, err := p.Parse(autoReceiveSchedule)
|
schedule, err := p.Parse(autoReceiveSchedule)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Invalid AUTO_RECEIVE_SCHEDULE: ", err.Error())
|
log.Fatal("AUTO_RECEIVE_SCHEDULE: Invalid schedule: ", err.Error())
|
||||||
}
|
}
|
||||||
|
|
||||||
c := cron.New()
|
c := cron.New()
|
||||||
@ -198,7 +198,7 @@ func main() {
|
|||||||
return nil
|
return nil
|
||||||
})
|
})
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("Couldn't get registered numbers")
|
log.Fatal("AUTO_RECEIVE_SCHEDULE: Couldn't get registered numbers")
|
||||||
}
|
}
|
||||||
}))
|
}))
|
||||||
c.Start()
|
c.Start()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user