Skip to content

Commit

Permalink
chore: disable physical logs for ci
Browse files Browse the repository at this point in the history
  • Loading branch information
CristhianF7 committed Nov 15, 2024
1 parent eeeb475 commit 31921f8
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,11 @@ func main() {

// setup default logging
// this Go standard log is active to keep compatibility with current code base
stdLog.SetOutput(logFileObj)
stdLog.SetPrefix("LOG: ")
stdLog.SetFlags(stdLog.Ldate)
if !isCiExecution {
stdLog.SetOutput(logFileObj)
stdLog.SetPrefix("LOG: ")
stdLog.SetFlags(stdLog.Ldate)
}

log.Logger = zeroLog.New(logFileObj).With().Timestamp().Logger()

Expand Down

0 comments on commit 31921f8

Please sign in to comment.