We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add global debug level control via --debug flag in common.go
var ( DebugLevel int // 0-3, default 0 ) func init() { flag.IntVar(&DebugLevel, "debug", 0, "Debug level (0-3)") }
func DebugLog(level int, format string, args ...interface{}) { if level <= DebugLevel { fmt.Printf(format+"\n", args...) } }
common.DebugLog(1, "basic debug info: %v", someVar) common.DebugLog(2, "more detailed: %v", details) common.DebugLog(3, "trace level: %v", everything)
Once this is done, revisit with increased debugging in other packages.
The text was updated successfully, but these errors were encountered:
@eugeis , unless you have something planned?
Sorry, something went wrong.
No branches or pull requests
What do you need?
Implement Global Debug Option
Current State
Proposed Solution
Add global debug level control via --debug flag in common.go
Implementation Details
Migration Plan
Benefits
Once this is done, revisit with increased debugging in other packages.
The text was updated successfully, but these errors were encountered: