From 2ab3116d52fdfb2270e41d360436e3e9a7abac9e Mon Sep 17 00:00:00 2001 From: brent s Date: Sun, 2 Jun 2019 18:12:10 -0400 Subject: [PATCH] fixing logging bug --- storage/backups/borg/backup.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/storage/backups/borg/backup.py b/storage/backups/borg/backup.py index 24905c3..f6206be 100755 --- a/storage/backups/borg/backup.py +++ b/storage/backups/borg/backup.py @@ -264,9 +264,9 @@ class Backup(object): if prep_out.returncode != 0: err = ('Prep job {0} ({1}) for server {2} (repo {3}) ' 'returned non-zero').format(idx, exec_tmp, server, repo) - logging.warning(err) - logging.debug('STDOUT: {0}'.format(prep_out.stdout.decode('utf-8'))) - logging.debug('STDERR: {0}'.format(prep_out.stderr.decode('utf-8'))) + self.logger.warning(err) + self.logger.debug('STDOUT: {0}'.format(prep_out.stdout.decode('utf-8'))) + self.logger.debug('STDERR: {0}'.format(prep_out.stderr.decode('utf-8'))) else: os.remove(exec_tmp) if 'plugins' in repo: