mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
Trim loglines in log_command()
This commit is contained in:
parent
7789bc6b16
commit
1565514018
1 changed files with 2 additions and 2 deletions
|
@ -11,11 +11,11 @@ def log_command(command, logger):
|
|||
if fd == process.stdout.fileno():
|
||||
line = process.stdout.readline()
|
||||
if line != '':
|
||||
logger.debug(line)
|
||||
logger.debug(line.strip())
|
||||
if fd == process.stderr.fileno():
|
||||
line = process.stderr.readline()
|
||||
if line != '':
|
||||
logger.error(line)
|
||||
logger.error(line.strip())
|
||||
if process.poll() is not None:
|
||||
break
|
||||
return process.returncode
|
||||
|
|
Loading…
Add table
Reference in a new issue