Skip to content

Commit

Permalink
Remove error check if DEBUG env var doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jfoster committed Jun 13, 2019
1 parent 6b674f7 commit 1a3144b
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions bot.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,7 @@ func main() {
ForceColors: true,
DisableTimestamp: true,
}
debug, err := strconv.ParseBool(os.Getenv("DEBUG"))
if err != nil {
logr.Error(err)
}
debug, _ := strconv.ParseBool(os.Getenv("DEBUG"))
if debug {
logr.AddHook(stack.StandardHook())
logr.SetLevel(logrus.DebugLevel)
Expand Down

0 comments on commit 1a3144b

Please sign in to comment.