Skip to content

Commit

Permalink
put output of atomic [un,]mount to logger, not colin's stdout
Browse files Browse the repository at this point in the history
Fixes #179

Signed-off-by: Tomas Tomecek <[email protected]>
  • Loading branch information
TomasTomecek committed Sep 19, 2018
1 parent af6cb90 commit c9415f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion colin/core/target.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,11 @@ def _run_and_log(cmd, ostree_repo_path, error_msg, wd=None):
if wd:
kwargs["cwd"] = wd
try:
subprocess.check_call(cmd, **kwargs)
out = subprocess.check_output(cmd, **kwargs)
except subprocess.CalledProcessError:
logger.error(error_msg)
raise
logger.debug("%s", out)

@property
def config_metadata(self):
Expand Down

0 comments on commit c9415f7

Please sign in to comment.