Skip to content

Commit

Permalink
tweak log statement
Browse files Browse the repository at this point in the history
  • Loading branch information
hsheth2 committed Jul 26, 2024
1 parent 6dcd898 commit 4f36f40
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ def fetch_query_log(
resp = self.connection.query(query_log_query)

for i, row in enumerate(resp):
if i % 1000 == 0:
logger.info(f"Processed {i} query log rows")
if i > 0 and i % 1000 == 0:
logger.info(f"Processed {i} query log rows so far")

try:
entry = self._parse_audit_log_row(row)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,8 @@ def fetch_query_log(
resp = self.connection.query(query_log_query)

for i, row in enumerate(resp):
if i % 1000 == 0:
logger.info(f"Processed {i} query log rows")
if i > 0 and i % 1000 == 0:
logger.info(f"Processed {i} query log rows so far")

assert isinstance(row, dict)
try:
Expand Down

0 comments on commit 4f36f40

Please sign in to comment.