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
46eead39
Commit
46eead39
authored
Nov 21, 2018
by
Lukas Burgey
Browse files
Change some debug output
parent
96ac6b32
Changes
1
Hide whitespace changes
Inline
Side-by-side
task.go
View file @
46eead39
...
...
@@ -357,6 +357,15 @@ func (c *config) handleTask(t task) (err error) {
if
err
!=
nil
{
return
}
if
*
scriptDebugging
{
var
indented
=
new
(
bytes
.
Buffer
)
err
=
json
.
Indent
(
indented
,
outputBytes
,
" "
,
" "
)
if
err
!=
nil
{
t
.
Log
(
"Output (unable to indent: %s):
\n
%s"
,
err
,
outputBytes
)
}
else
{
t
.
Log
(
"Output:
\n
%s"
,
indented
.
String
())
}
}
err
=
json
.
Unmarshal
(
outputBytes
,
&
output
)
if
err
!=
nil
{
...
...
@@ -365,9 +374,6 @@ func (c *config) handleTask(t task) (err error) {
}
return
}
if
*
scriptDebugging
{
t
.
Log
(
"Output: %s"
,
output
)
}
// if the script does not provide any credential specific states we expect all
// credentials to have the same state as the whole execution (output.State)
...
...
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