Skip to content

Commit

Permalink
instantiate logger before using it -.-
Browse files Browse the repository at this point in the history
  • Loading branch information
kamaln7 committed Aug 15, 2018
1 parent afa876f commit 19e159f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cmd/karmabotctl/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,16 @@ var (
)

func main() {
// logging

ll = log.KV("version", karmabot.Version)

// commands

cc := &ctlcommands.Commands{
Logger: ll,
}

// logging

ll = log.KV("version", karmabot.Version)

// app
app := cli.NewApp()
app.Name = "karmabotctl"
Expand Down

0 comments on commit 19e159f

Please sign in to comment.