We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bc56ac commit 0e74404Copy full SHA for 0e74404
src/monitor/flowServerMonitor.ml
@@ -63,8 +63,7 @@ module LogFlusher = LwtLoop.Make (struct
63
64
let main () =
65
let%lwt () = Lwt_unix.sleep 5.0 in
66
- EventLogger.flush ();
67
- Lwt.return_unit
+ EventLoggerLwt.flush ()
68
69
let catch () exn =
70
Logger.fatal ~exn "LogFlusher somehow hit an exception";
src/server/server.ml
@@ -183,7 +183,9 @@ let rec serve ~dfind ~genv ~env =
183
~default:(Lwt.return env)
184
~f:(process_message genv env) in
185
186
+ (* Flush the logs asynchronously *)
187
+ Lwt.async EventLoggerLwt.flush;
188
+
189
serve ~dfind ~genv ~env
190
191
(* This code is only executed when the options --check is NOT present *)
0 commit comments