Skip to content

Commit 19a4bad

Browse files
committed
use _debug and better message
1 parent 6ccd831 commit 19a4bad

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Tiny_httpd.ml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1101,8 +1101,9 @@ let run (self:t) : (unit,_) result =
11011101
raise e
11021102
);
11031103
with e ->
1104-
Printf.eprintf "accept raised an exception: %s"
1105-
(Printexc.to_string e)
1104+
_debug (fun k -> k
1105+
"Unix.accept or Thread.create raised an exception: %s"
1106+
(Printexc.to_string e))
11061107
done;
11071108
Ok ()
11081109
with e -> Error e

0 commit comments

Comments
 (0)