chore(log-levels): Refactor log level env flag#46
Conversation
📝 WalkthroughWalkthroughThis pull request introduces Viper-based configuration management for the log-level flag, binding a persistent flag to the CTRLPLANE_LOG_LEVEL environment variable and retrieving the value via viper.GetString() in the root command's initialization hook. The refactoring replaces the dynamic defaultOrEnv helper function with a fixed "info" default. Changes
Estimated Code Review Effort🎯 2 (Simple) | ⏱️ ~15 minutes Possibly Related PRs
Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.