diff options
Diffstat (limited to 'src/gobang.go')
-rw-r--r-- | src/gobang.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gobang.go b/src/gobang.go index fc8e2f0..c8ab0f3 100644 --- a/src/gobang.go +++ b/src/gobang.go @@ -754,7 +754,7 @@ func AssertEqualI(i int, given any, expected any) { } var unfilteringLevel = new(slog.LevelVar) -func setLoggerOutput(w io.Writer, args ...any) { +func SetLoggerOutput(w io.Writer, args ...any) { unfilteringLevel.Set(slog.LevelDebug) slog.SetDefault(slog.New(slog.NewJSONHandler(w, &slog.HandlerOptions { Level: unfilteringLevel, @@ -838,7 +838,7 @@ func setHostname() { } func Init(args ...any) { - setLoggerOutput(os.Stdout, args...) + SetLoggerOutput(os.Stdout, args...) setLogLevel() setMetric() setTraceback() |