Problem: Logger was always using info level despite MPC_LOGGER_LEVEL=debug Root cause: The init() function in logger.go was calling InitProduction() which created a zap.NewProduction() logger with hardcoded info level. This happened before main() called logger.Init(cfg), so the config was being ignored. Solution: 1. Removed init() function to prevent early logger initialization 2. Added zap.ReplaceGlobals() in Init() to ensure config takes effect 3. Removed unused "os" import References: - https://pkg.go.dev/go.uber.org/zap - https://stackoverflow.com/questions/57745017/ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| config | ||
| crypto | ||
| errors | ||
| grpcutil | ||
| jwt | ||
| logger | ||
| middleware | ||
| retry | ||
| tss | ||
| utils | ||