Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
feudal
feudalClient
Commits
b5584c93
Commit
b5584c93
authored
Jul 18, 2018
by
Lukas Burgey
Browse files
Add debug-all flag
parent
d1915a65
Changes
1
Hide whitespace changes
Inline
Side-by-side
main.go
View file @
b5584c93
...
...
@@ -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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment