Skip to content

Commit 5999a48

Browse files
committed
fix logging datetime
was missing the date and time flags as explained in the docs ;)
1 parent 6292df3 commit 5999a48

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

TODO

-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
// }
1212

1313
# Technical
14-
* logging does not report the current time in UTC as I thought it would with my current configuration
1514
* update to go 1.17
1615
* update golangci-lint?
1716
* restructure package dependencies and increase coverage

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ func run(args []string, out io.Writer) error {
3939
return errors.New("both slackChannel and slackApiToken must be either provided or not")
4040
}
4141

42-
logger := log.New(out, args[0]+" ", log.LUTC)
42+
logger := log.New(out, args[0]+" ", log.LstdFlags|log.LUTC)
4343
var notifier usage.Notifier
4444
if *slackToken != "" && *slackChannel != "" {
4545
notifier = slack.New(*slackToken, *slackChannel, logger)

0 commit comments

Comments
 (0)