diff --git a/frappe/monitor.py b/frappe/monitor.py index 55512a8abd..a02704f9e0 100644 --- a/frappe/monitor.py +++ b/frappe/monitor.py @@ -127,7 +127,7 @@ def flush(): logs = frappe.cache.lrange(MONITOR_REDIS_KEY, 0, -1) if logs: logs = list(map(frappe.safe_decode, logs)) - with open(log_file(), "a", os.O_NONBLOCK) as f: + with open(log_file(), "a") as f: f.write("\n".join(logs)) f.write("\n") # Remove fetched entries from cache