Hacker News new | ask | show | jobs
by alpb 3127 days ago
Oh lordy, that log.SetLogLevel() has effects outside the test code.
1 comments

Setting the log level has effects, but only on an internal wrapper package that neatly zips up the nitty gritty of setting up the logger.
Package-level loggers are an antipattern :(