Skip to content

Commit

Permalink
fix: enable debug log when RUNNER_DEBUG has value 1
Browse files Browse the repository at this point in the history
  • Loading branch information
aweris committed Oct 17, 2023
1 parent 391478b commit f2ee203
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/log/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,13 +47,13 @@ func (l *Logger) Infof(message string, keyvals ...interface{}) {
}

func (l *Logger) Debug(message string) {
if os.Getenv("RUNNER_DEBUG") != "1" {
if os.Getenv("RUNNER_DEBUG") == "1" {
l.log("", LevelDebug, message)
}
}

func (l *Logger) Debugf(message string, keyvals ...interface{}) {
if os.Getenv("RUNNER_DEBUG") != "1" {
if os.Getenv("RUNNER_DEBUG") == "1" {
l.logf(LevelDebug, message, keyvals...)
}
}
Expand Down

0 comments on commit f2ee203

Please sign in to comment.