mirror of
https://github.com/c-cube/tiny_httpd.git
synced 2025-12-06 11:15:35 -05:00
use _debug and better message
This commit is contained in:
parent
6ccd8314a3
commit
19a4bad231
1 changed files with 3 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue