[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] oxenstored: Always log something at start of day (if logging enabled at all)



# HG changeset patch
# User Ian Campbell <ian.campbell@xxxxxxxxxx>
# Date 1323968032 0
# Node ID 27736c7944b903c4945adbee4530c3af863c2545
# Parent  de4034343b3ab36168226e53188e269ca66067a7
oxenstored: Always log something at start of day (if logging enabled at all)

Otherwise at the default level we rarely log anything at all.

A completely empty log file is a good sign, but only if you know you are
looking in the right place...

Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Acked-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
Committed-by: Ian Jackson <ian.jackson@xxxxxxxxxxxxx>
---


diff -r de4034343b3a -r 27736c7944b9 tools/ocaml/xenstored/logging.ml
--- a/tools/ocaml/xenstored/logging.ml  Thu Dec 15 16:52:22 2011 +0000
+++ b/tools/ocaml/xenstored/logging.ml  Thu Dec 15 16:53:52 2011 +0000
@@ -117,6 +117,9 @@
                        make_logger 
                                !xenstored_log_file !xenstored_log_nb_files 
!xenstored_log_nb_lines
                                !xenstored_log_nb_chars ignore in
+               let date = string_of_date() in
+               logger.write ("[%s|%5s|%s] Xen Storage Daemon, version %d.%d") 
date "" "startup"
+                 Define.xenstored_major Define.xenstored_minor;
                xenstored_logger := Some logger
 
 let xenstored_logging level key (fmt: (_,_,_,_) format4) =
diff -r de4034343b3a -r 27736c7944b9 tools/ocaml/xenstored/xenstored.ml
--- a/tools/ocaml/xenstored/xenstored.ml        Thu Dec 15 16:52:22 2011 +0000
+++ b/tools/ocaml/xenstored/xenstored.ml        Thu Dec 15 16:53:52 2011 +0000
@@ -284,9 +284,6 @@
                Logging.init_access_log post_rotate
        end;
 
-       info "Xen Storage Daemon, version %d.%d"
-            Define.xenstored_major Define.xenstored_minor;
-
        let spec_fds =
                (match rw_sock with None -> [] | Some x -> [ x ]) @
                (match ro_sock with None -> [] | Some x -> [ x ]) @

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.