summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-08-29 12:35:48 +0300
committerLars Wirzenius <liw@liw.fi>2015-08-29 12:35:48 +0300
commit19a1e06fef727d074ad917ff0d37f5d83deeb44e (patch)
tree2ebe9045e398d012052503ea84dd1212b786cde3
parentdbadf9092b2cd2d082e612cb31a3b0bdb92396da (diff)
downloadobnam-19a1e06fef727d074ad917ff0d37f5d83deeb44e.tar.gz
Let logging.info do string formatting itself
-rw-r--r--obnamlib/plugins/restore_plugin.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/obnamlib/plugins/restore_plugin.py b/obnamlib/plugins/restore_plugin.py
index b10a7ac5..97485ece 100644
--- a/obnamlib/plugins/restore_plugin.py
+++ b/obnamlib/plugins/restore_plugin.py
@@ -389,11 +389,12 @@ class RestorePlugin(obnamlib.ObnamPlugin):
duration_string += '%ds' % round(seconds)
logging.info('Restore performance statistics:')
- logging.info('* files restored: %s' % self.file_count)
- logging.info('* downloaded data: %s bytes (%s %s)' %
- (self.downloaded_bytes, size_amount, size_unit))
- logging.info('* duration: %s s' % duration)
- logging.info('* average speed: %s %s' % (speed_amount, speed_unit))
+ logging.info('* files restored: %s', self.file_count)
+ logging.info(
+ '* downloaded data: %s bytes (%s %s)',
+ self.downloaded_bytes, size_amount, size_unit)
+ logging.info('* duration: %s s', duration)
+ logging.info('* average speed: %s %s', speed_amount, speed_unit)
self.app.ts.notify(
'Restored %d files, '
'downloaded %.1f %s in %s at %.1f %s average speed' %