test(logger): add internal debug test immediately after Build()

Added Log.Debug() and Log.Info() calls immediately after Build()
to test if the logger can output debug logs right after creation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
hailin 2025-12-06 03:41:00 -08:00
parent 3a247562ea
commit 47dd2d1cb5
1 changed files with 4 additions and 0 deletions

View File

@ -75,6 +75,10 @@ func Init(cfg *Config) error {
println("DEBUG: After Build, AtomicLevel:", atomicLevel.String())
println("DEBUG: After Build, Log.Level():", Log.Level().String())
// TEST: Try to log a debug message immediately after Build()
Log.Debug("INTERNAL TEST: Debug log immediately after Build()")
Log.Info("INTERNAL TEST: Info log immediately after Build()")
Sugar = Log.Sugar()
// Replace global zap logger to ensure our config takes effect