Skip to content

Commit

Permalink
Log backtraces on two more errors. Refs: #3156
Browse files Browse the repository at this point in the history
  • Loading branch information
toots committed Jun 27, 2023
1 parent 1ee9b61 commit e2c4e17
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 5 additions & 3 deletions src/core/outputs/icecast2.ml
Original file line number Diff line number Diff line change
Expand Up @@ -502,9 +502,11 @@ class output p =
~charset:(Charset.to_string out_enc)
connection icy_meta
with e ->
self#log#important
"Metadata update may have failed with error: %s"
(Printexc.to_string e))
let bt = Printexc.get_backtrace () in
Utils.log_exception ~log:self#log ~bt
(Printf.sprintf
"Metadata update may have failed with error: %s"
(Printexc.to_string e)))
| Cry.Disconnected -> ())
else (
(* Encoder is not always present.. *)
Expand Down
6 changes: 4 additions & 2 deletions src/core/sources/harbor_input.ml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ class http_input_server ~pos ~transport ~dumpfile ~logfile ~bufferize ~max ~icy
in
f ()
with e ->
self#log#severe "Error while reading from client: %s"
(Printexc.to_string e);
let bt = Printexc.get_backtrace () in
Utils.log_exception ~log:self#log ~bt
(Printf.sprintf "Error while reading from client: %s"
(Printexc.to_string e));
self#disconnect ~lock:false;
0))
buf len
Expand Down

0 comments on commit e2c4e17

Please sign in to comment.