Skip to content

Commit

Permalink
fix: replace printf with logger
Browse files Browse the repository at this point in the history
  • Loading branch information
adamdecaf committed Oct 17, 2023
1 parent 880b3f8 commit a854cbd
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package main

import (
"fmt"
"os"
"os/exec"
"time"
Expand All @@ -23,9 +22,10 @@ func main() {
}
}

logger.Info().With(log.Fields{
logger = logger.Info().With(log.Fields{
"location": log.String(location.String()),
}).Logf("starting bankcron %s", Version)
})
logger.Logf("starting bankcron %s", Version)

rr := &runner{
logger: logger,
Expand All @@ -36,7 +36,7 @@ func main() {
if err != nil {
os.Exit(1)
}
fmt.Print(string(output))
logger.Log(string(output))
}

type runner struct {
Expand Down

0 comments on commit a854cbd

Please sign in to comment.