fix: Push a newline after all logs
This commit is contained in:
parent
cb3507f5e4
commit
2b8c5a7f47
1 changed files with 1 additions and 0 deletions
|
|
@ -96,6 +96,7 @@ def flush():
|
|||
logs = list(map(frappe.safe_decode, logs))
|
||||
with open(log_file(), "a", os.O_NONBLOCK) as f:
|
||||
f.write("\n".join(logs))
|
||||
f.write("\n")
|
||||
|
||||
# Remove fetched entries from cache
|
||||
frappe.cache().ltrim(MONITOR_REDIS_KEY, len(logs) - 1, -1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue