Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Use 32-bit safe default value for multilogger default value.
  • Loading branch information
oko committed Jan 5, 2021
1 parent 4f7924b commit 958d36e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ vet:
linux:
GOOS=linux GOARCH=amd64 scripts/build.sh

.PHONY: linux32
linux32:
GOOS=linux GOARCH=386 scripts/build.sh

.PHONY: darwin
darwin:
GOOS=darwin GOARCH=amd64 scripts/build.sh
Expand Down
3 changes: 1 addition & 2 deletions multilogger.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ package go2chef

import (
"fmt"
"math"
"runtime"
)

Expand All @@ -23,7 +22,7 @@ type MultiLogger struct {
func NewMultiLogger(loggers []Logger) *MultiLogger {
return &MultiLogger{
loggers: loggers,
debug: math.MaxInt64,
debug: int(^uint(0) >> 1),
level: LogLevelDebug,
}
}
Expand Down

0 comments on commit 958d36e

Please sign in to comment.