Commit b5584c93 authored by Lukas Burgey's avatar Lukas Burgey
Browse files

Add debug-all flag

parent d1915a65
......@@ -68,6 +68,7 @@ var (
scriptDebugging = app.Flag("debug-scripts", "Display debugging info concerning executed scripts").Bool()
backendDebugging = app.Flag("debug-backend", "Display debugging info concerning the backend").Bool()
brokerDebugging = app.Flag("debug-broker", "Display debugging info concerning the message broker").Bool()
debugAll = app.Flag("debug", "Display all debugging info").Bool()
)
func logError(err error, msg string) {
......@@ -222,6 +223,22 @@ func main() {
// get arguments
kingpin.MustParse(app.Parse(os.Args[1:]))
if *debugAll {
*brokerDebugging = true
*scriptDebugging = true
*backendDebugging = true
}
if *brokerDebugging {
log.Printf("[Debug] broker debugging enabled")
}
if *scriptDebugging {
log.Printf("[Debug] script debugging enabled")
}
if *backendDebugging {
log.Printf("[Debug] backend debugging enabled")
}
// read the config file
c, err := getConfig(*configFile)
if err != nil {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment