diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-08-29 12:35:48 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-08-29 12:35:48 +0300 |
commit | 19a1e06fef727d074ad917ff0d37f5d83deeb44e (patch) | |
tree | 2ebe9045e398d012052503ea84dd1212b786cde3 | |
parent | dbadf9092b2cd2d082e612cb31a3b0bdb92396da (diff) | |
download | obnam-19a1e06fef727d074ad917ff0d37f5d83deeb44e.tar.gz |
Let logging.info do string formatting itself
-rw-r--r-- | obnamlib/plugins/restore_plugin.py | 11 |
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' % |