Skip to content

Commit

Permalink
Fix log string interpolation
Browse files Browse the repository at this point in the history
  • Loading branch information
chdorner committed Mar 16, 2016
1 parent fb59d11 commit 78fd99b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/migrate.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ def create_or_update_document_uri(es_docuri, pg_document):
updated=es_docuri.updated)
Session.add(docuri)
elif not docuri.document == pg_document:
log.warn('Found DocumentURI with id {:d} does not match expected document with id {:d}', docuri.id, pg_document.id)
log.warn('Found DocumentURI with id %d does not match expected document with id %d', docuri.id, pg_document.id)

docuri.updated = es_docuri.updated

Expand All @@ -291,7 +291,7 @@ def create_or_update_document_meta(es_meta, pg_document):
meta.value = es_meta.value
meta.updated = es_meta.updated
if not meta.document == pg_document:
log.warn('Found DocumentMeta with id {:d} does not match expected document with id {:d}', meta.id, pg_document.id)
log.warn('Found DocumentMeta with id %d does not match expected document with id %d', meta.id, pg_document.id)


def _batch_iter(n, iterable):
Expand Down

0 comments on commit 78fd99b

Please sign in to comment.