Skip to content

Commit

Permalink
webapp: flush more log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
aiooss-anssi committed Nov 20, 2023
1 parent a91bdee commit 72dcee3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ async def fill_database(self):
)
eve_idx, tcp_idx, udp_idx = await cursor.fetchone() or [0, 0, 0]
if eve_idx == 0:
print("Starting initial eve.json import, please be patient...")
print("Starting initial eve.json import, please be patient...", flush=True)

# eve.json contains one event per line
with open("../suricata/output/eve.json", "rb") as f:
Expand Down Expand Up @@ -305,7 +305,7 @@ async def importer_task(self):
await self.fill_database()
except FileNotFoundError:
await self.con.execute("ROLLBACK")
print("Suricata output not found, retrying in 1s")
print("Suricata output not found, retrying in 1s", flush=True)
except Exception:
print(traceback.format_exc(), flush=True)
return
Expand Down

0 comments on commit 72dcee3

Please sign in to comment.