From: Jonathan Davies Date: Fri, 7 Apr 2017 13:27:18 +0000 (+0100) Subject: oxenstored: initialise logging earlier X-Git-Tag: archive/raspbian/4.11.1-1+rpi1~1^2~66^2~2246 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=0c7b704097409cc6500284c51fada0b4f3a695eb;p=xen.git oxenstored: initialise logging earlier Otherwise we miss out on messages from things that try to log earlier in the start-up procedure. Signed-off-by: Jonathan Davies Reviewed-by: Wei Liu Reviewed-by: Christian Lindig Release-acked-by: Julien Grall --- diff --git a/tools/ocaml/xenstored/xenstored.ml b/tools/ocaml/xenstored/xenstored.ml index 05ace4dfc6..09da257150 100644 --- a/tools/ocaml/xenstored/xenstored.ml +++ b/tools/ocaml/xenstored/xenstored.ml @@ -285,6 +285,8 @@ let _ = let quit = ref false in + Logging.init_xenstored_log(); + if cf.restart then ( DB.from_file store domains cons (Paths.xen_run_stored ^ "/db"); Event.bind_dom_exc_virq eventchn @@ -311,7 +313,6 @@ let _ = Sys.set_signal Sys.sigusr1 (Sys.Signal_handle (fun i -> sigusr1_handler store)); Sys.set_signal Sys.sigpipe Sys.Signal_ignore; - Logging.init_xenstored_log(); if cf.activate_access_log then begin let post_rotate () = DB.to_file store cons (Paths.xen_run_stored ^ "/db") in Logging.init_access_log post_rotate