[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/5] 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 <jonathan.davies@xxxxxxxxxx> --- tools/ocaml/xenstored/xenstored.ml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ocaml/xenstored/xenstored.ml b/tools/ocaml/xenstored/xenstored.ml index 05ace4d..09da257 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 -- 2.7.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |