use _debug and better message

This commit is contained in:
craff 2021-11-29 23:38:28 -10:00
parent 6ccd8314a3
commit 19a4bad231

View file

@ -1101,8 +1101,9 @@ let run (self:t) : (unit,_) result =
raise e
);
with e ->
Printf.eprintf "accept raised an exception: %s"
(Printexc.to_string e)
_debug (fun k -> k
"Unix.accept or Thread.create raised an exception: %s"
(Printexc.to_string e))
done;
Ok ()
with e -> Error e