diff --git a/ocaml/examples/debug_logging.ml b/ocaml/examples/debug_logging.ml index 5886ec6b1..6b35e4da2 100644 --- a/ocaml/examples/debug_logging.ml +++ b/ocaml/examples/debug_logging.ml @@ -65,7 +65,7 @@ let rec main () = * This example simply redirects these messages to syslog, but * obviously you could do something more advanced here. *) -and message_callback g event event_handle buf array = +and message_callback event event_handle buf array = if String.length buf > 0 then ( let event_name = Guestfs.event_to_string [event] in Printf.printf "[%s] %S\n%!" event_name buf