Improved logging
All checks were successful
Go / build (push) Successful in 22s

This commit is contained in:
Darius klein 2025-11-20 17:45:41 +01:00
parent 5b763dc7b4
commit 9cdb96036f
2 changed files with 3 additions and 0 deletions

View File

@ -43,6 +43,7 @@ func main() {
return context, nil return context, nil
}, },
After: func(context context.Context, c *cli.Command) error { After: func(context context.Context, c *cli.Command) error {
logger.Log("Starting cleanup")
logger.CloseLogFile() logger.CloseLogFile()
return nil return nil
}, },

View File

@ -132,6 +132,8 @@ func action(context context.Context, c *cli.Command) error {
logger.Log("Slack targets found.") logger.Log("Slack targets found.")
slack.Send(ar, priority) slack.Send(ar, priority)
} }
logger.Log("Finished sending messages")
return nil return nil
} }