Skip to content

Commit

Permalink
master_connection: logging once is enough
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Hoes <[email protected]>
  • Loading branch information
robhoes committed Jan 28, 2025
1 parent f78df2e commit f346848
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions ocaml/database/master_connection.ml
Original file line number Diff line number Diff line change
Expand Up @@ -235,14 +235,11 @@ let do_db_xml_rpc_persistent_with_reopen ~host:_ ~path (req : string) :
let time_sofar = Unix.gettimeofday () -. time_call_started in
if !connection_timeout < 0. then (
if not !surpress_no_timeout_logs then (
debug
"Connection to master died. I will continue to retry indefinitely \
(supressing future logging of this message)." ;
error
"Connection to master died. I will continue to retry indefinitely \
(supressing future logging of this message)."
) ;
surpress_no_timeout_logs := true
(supressing future logging of this message)." ;
surpress_no_timeout_logs := true
)
) else
debug
"Connection to master died: time taken so far in this call '%f'; will \
Expand Down

0 comments on commit f346848

Please sign in to comment.