From ef61eb494b42a7bc226de1edc114579ce530abdd Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Thu, 7 Nov 2024 01:23:43 -0600 Subject: try allowing switching to writing to http --- warn.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'warn.go') diff --git a/warn.go b/warn.go index d02d301..f94e255 100644 --- a/warn.go +++ b/warn.go @@ -5,7 +5,11 @@ package log func Warn(a ...any) { - if ! WARN.Ok() { return } - if ! WARN.b { return } + if !WARN.Ok() { + return + } + if !WARN.b { + return + } realPrintln(a...) } -- cgit v1.2.3