Skip to content
Snippets Groups Projects
Commit beb4dfe3 authored by Alessandro Cerioni's avatar Alessandro Cerioni
Browse files

Minor improvement in the log messages

parent bbf97afc
Branches
Tags 1.4.3
No related merge requests found
...@@ -69,7 +69,7 @@ def on_msg_callback(channel, method, properties, body): ...@@ -69,7 +69,7 @@ def on_msg_callback(channel, method, properties, body):
es_source.indices.refresh(index=cfg['reindexer']['source_index']) es_source.indices.refresh(index=cfg['reindexer']['source_index'])
count1 = es_source.count(cfg['reindexer']['source_index'], body=the_query).get('count') count1 = es_source.count(cfg['reindexer']['source_index'], body=the_query).get('count')
logging.debug("%i documents found in the source index with uuid = %s" % (count1, uuid)) logging.debug("%i document(s) found in the source index with uuid = %s" % (count1, uuid))
if uuid.endswith('.full'): if uuid.endswith('.full'):
...@@ -78,7 +78,7 @@ def on_msg_callback(channel, method, properties, body): ...@@ -78,7 +78,7 @@ def on_msg_callback(channel, method, properties, body):
es_source.indices.refresh(index=cfg['reindexer']['source_index']) es_source.indices.refresh(index=cfg['reindexer']['source_index'])
count2 = es_source.count(cfg['reindexer']['source_index'], body=the_query).get('count') count2 = es_source.count(cfg['reindexer']['source_index'], body=the_query).get('count')
logging.debug("%i documents found in the source index with uuid = %s" % (count2, uuid)) logging.debug("%i document(s) found in the source index with uuid = %s" % (count2, uuid))
if count1 != count2 or count2 == 0: if count1 != count2 or count2 == 0:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment