Skip to content

Commit

Permalink
more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Bizon committed Aug 7, 2022
1 parent 4baaf26 commit 29da158
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/logging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ handlers:
maxBytes: 100000000
backupCount: 30
loggers:
src.operations:
level: DEBUG
handlers:
- console
- file
src.common:
level: DEBUG
handlers:
- console
- file
src.server:
level: INFO
handlers:
Expand Down
2 changes: 2 additions & 0 deletions src/service_aggregator.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@ async def post_async(host_url, query, guid, params=None):

jr = json.loads(content)
if await is_end_message(jr):
logger.debug('Received complete message from multistrider')
break

query = Query.parse_obj(jr)
Expand All @@ -249,6 +250,7 @@ async def post_async(host_url, query, guid, params=None):
#this is a little messy because this is trying to handle multiquery (returns an end message)
# and single query (no end message; single query)
if num_queries == 1:
logger.debug('Single message returned from strider; continuing')
break
else:
# file not found
Expand Down

0 comments on commit 29da158

Please sign in to comment.