Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nrm
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
argo
nrm
Commits
e62f7ad0
Commit
e62f7ad0
authored
Jan 04, 2019
by
Valentin Reis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[fix] Printing application stdout and stderr correctly (with tangling of cmd log on stderr.)
parent
14766d2d
Pipeline
#4828
failed with stages
in 1 minute and 8 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
bin/cmd
bin/cmd
+6
-2
No files found.
bin/cmd
View file @
e62f7ad0
...
@@ -118,13 +118,17 @@ class CommandLineInterface(object):
...
@@ -118,13 +118,17 @@ class CommandLineInterface(object):
assert
msg
.
type
in
[
'stdout'
,
'stderr'
,
'exit'
,
'process_exit'
]
assert
msg
.
type
in
[
'stdout'
,
'stderr'
,
'exit'
,
'process_exit'
]
if
msg
.
type
==
'stdout'
:
if
msg
.
type
==
'stdout'
:
logger
.
info
(
"container msg: %r"
,
msg
)
logger
.
debug
(
"container msg: %r"
,
msg
)
if
msg
.
payload
==
'eof'
:
if
msg
.
payload
==
'eof'
:
outeof
=
True
outeof
=
True
else
:
print
(
msg
.
payload
)
elif
msg
.
type
==
'stderr'
:
elif
msg
.
type
==
'stderr'
:
logger
.
info
(
"container msg: %r"
,
msg
)
logger
.
debug
(
"container msg: %r"
,
msg
)
if
msg
.
payload
==
'eof'
:
if
msg
.
payload
==
'eof'
:
erreof
=
True
erreof
=
True
else
:
print
(
msg
.
payload
,
file
=
sys
.
stderr
)
elif
msg
.
type
==
'process_exit'
:
elif
msg
.
type
==
'process_exit'
:
logger
.
info
(
"process ended: %r"
,
msg
)
logger
.
info
(
"process ended: %r"
,
msg
)
state
=
'exiting'
state
=
'exiting'
...
...
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