[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen master] oxenstored: initialise logging earlier
commit 0c7b704097409cc6500284c51fada0b4f3a695eb Author: Jonathan Davies <jonathan.davies@xxxxxxxxxx> AuthorDate: Fri Apr 7 14:27:18 2017 +0100 Commit: Wei Liu <wei.liu2@xxxxxxxxxx> CommitDate: Mon Apr 10 14:46:19 2017 +0100 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> Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx> Reviewed-by: Christian Lindig <christian.lindig@xxxxxxxxxx> Release-acked-by: Julien Grall <julien.grall@xxxxxxx> --- 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 -- generated by git-patchbot for /home/xen/git/xen.git#master _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx https://lists.xenproject.org/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |