Skip to content

Commit

Permalink
chore: without debug mode, only log on stderr upon fatal errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-grgt committed Jan 27, 2025
1 parent 41586a0 commit 2e8d341
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ktea.go
Original file line number Diff line number Diff line change
Expand Up @@ -314,6 +314,9 @@ func main() {
log.Debug("Logging to debug.log")
log.Info("started")
}
} else {
log.SetOutput(os.Stderr)
log.SetLevel(log.FatalLevel)
}

if _, err := p.Run(); err != nil {
Expand Down

0 comments on commit 2e8d341

Please sign in to comment.