Skip to content

Commit

Permalink
Fix logging bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bltravis authored and btravisebsco committed Sep 17, 2024
1 parent e399e7e commit 755d5db
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/folio_data_import/UserImport.py
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,9 @@ async def process_file(self) -> None:
await self.logfile.write(message + "\n")
tasks = []
if tasks:
start = time.time()
await asyncio.gather(*tasks)
duration = time.time() - start
async with self.lock:
message = (
f"{dt.now().isoformat(sep=' ', timespec='milliseconds')}: "
Expand Down

0 comments on commit 755d5db

Please sign in to comment.