fixing logging bug
This commit is contained in:
parent
5af337fca7
commit
2ab3116d52
@ -264,9 +264,9 @@ class Backup(object):
|
|||||||
if prep_out.returncode != 0:
|
if prep_out.returncode != 0:
|
||||||
err = ('Prep job {0} ({1}) for server {2} (repo {3}) '
|
err = ('Prep job {0} ({1}) for server {2} (repo {3}) '
|
||||||
'returned non-zero').format(idx, exec_tmp, server, repo)
|
'returned non-zero').format(idx, exec_tmp, server, repo)
|
||||||
logging.warning(err)
|
self.logger.warning(err)
|
||||||
logging.debug('STDOUT: {0}'.format(prep_out.stdout.decode('utf-8')))
|
self.logger.debug('STDOUT: {0}'.format(prep_out.stdout.decode('utf-8')))
|
||||||
logging.debug('STDERR: {0}'.format(prep_out.stderr.decode('utf-8')))
|
self.logger.debug('STDERR: {0}'.format(prep_out.stderr.decode('utf-8')))
|
||||||
else:
|
else:
|
||||||
os.remove(exec_tmp)
|
os.remove(exec_tmp)
|
||||||
if 'plugins' in repo:
|
if 'plugins' in repo:
|
||||||
|
Loading…
Reference in New Issue
Block a user