summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2015-08-29 12:50:12 +0300
committerLars Wirzenius <liw@liw.fi>2015-08-29 12:50:12 +0300
commit7630801c1e03c202c3efe207eaeb846d00f9e82b (patch)
treeb4c024dcdf95f918a68ec354a23a358f39f8f79b
parent1e0c8e13f1a87a04d8ef0e015d986b43752195b9 (diff)
downloadobnam-7630801c1e03c202c3efe207eaeb846d00f9e82b.tar.gz
Let logging functions to string formatting
-rw-r--r--obnamlib/plugins/verify_plugin.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/obnamlib/plugins/verify_plugin.py b/obnamlib/plugins/verify_plugin.py
index cd5a8867..a908a28e 100644
--- a/obnamlib/plugins/verify_plugin.py
+++ b/obnamlib/plugins/verify_plugin.py
@@ -54,14 +54,14 @@ class VerifyPlugin(obnamlib.ObnamPlugin):
raise WrongNumberOfGenerationsForVerify()
logging.debug(
- 'verifying generation %s' % self.app.settings['generation'])
+ 'verifying generation %s', self.app.settings['generation'])
if not args:
self.app.settings.require('root')
args = self.app.settings['root']
if not args:
logging.debug('no roots/args given, so verifying everything')
args = ['/']
- logging.debug('verifying what: %s' % repr(args))
+ logging.debug('verifying what: %s', repr(args))
self.repo = self.app.get_repository_object()
client_name = self.app.settings['client-name']
@@ -69,8 +69,8 @@ class VerifyPlugin(obnamlib.ObnamPlugin):
self.fs.connect()
t = urlparse.urlparse(args[0])
root_url = urlparse.urlunparse((t[0], t[1], '/', t[3], t[4], t[5]))
- logging.debug('t: %s' % repr(t))
- logging.debug('root_url: %s' % repr(root_url))
+ logging.debug('t: %s', repr(t))
+ logging.debug('root_url: %s', repr(root_url))
self.fs.reinit(root_url)
self.failed = False
@@ -115,7 +115,7 @@ class VerifyPlugin(obnamlib.ObnamPlugin):
self.log_fail(e)
self.app.ts['done'] += 1
else:
- logging.debug('verifying %d files randomly' % num_randomly)
+ logging.debug('verifying %d files randomly', num_randomly)
self.app.ts['total'] = num_randomly
self.app.ts.notify('finding all files to choose randomly')
@@ -191,7 +191,7 @@ class VerifyPlugin(obnamlib.ObnamPlugin):
X(obnamlib.REPO_FILE_XATTR_BLOB, 'xattr')
def verify_regular_file(self, gen_id, filename):
- logging.debug('verifying regular %s' % filename)
+ logging.debug('verifying regular %s', filename)
f = self.fs.open(filename, 'r')
chunkids = self.repo.get_file_chunk_ids(gen_id, filename)