Skip to content

Commit

Permalink
feat: add some logs during the list_modified_characters
Browse files Browse the repository at this point in the history
  • Loading branch information
ishtanzar committed Jan 25, 2024
1 parent fc74a14 commit 9ddecaf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wm-worker/src/services/foundry.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ async def list_modified_characters(self, last_sync: str = None) -> list:
'limit': query_size,
'filter': "message = 'Actor modified' AND timestamp > " + str(last_sync_obj.int_timestamp)
})
self._logger.debug(f'ms.search {index.uid} - offset={query_from} limit={query_size} ts>{str(last_sync_obj.int_timestamp)}')

for h in resp['hits']:
hits_count += 1
Expand All @@ -67,6 +68,7 @@ async def list_modified_characters(self, last_sync: str = None) -> list:

query_from = query_from + query_size

self._logger.debug(f'Found {len(modified)} characters modified')
return list(modified)

async def cron(self):
Expand Down

0 comments on commit 9ddecaf

Please sign in to comment.