WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] [PATCH] Switch all xapi syslog logging back to 'daemon'

To: Xen API <xen-api@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-API] [PATCH] Switch all xapi syslog logging back to 'daemon'
From: Daniel Stodden <daniel.stodden@xxxxxxxxxx>
Date: Thu, 26 Nov 2009 00:09:23 -0000
Delivery-date: Wed, 25 Nov 2009 16:09:43 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mercurial-patchbomb/1.3.1
# HG changeset patch
# User Daniel Stodden <daniel.stodden@xxxxxxxxxx>
# Date 1259180048 28800
# Node ID ed73c0ba9b7e95d81c6ba49c297110750004fd57
# Parent  3dad906dec60a34a95bd8dd3963e02218017efa7
Switch all xapi syslog logging back to 'daemon'.
Since messages to 'daemon' are written asynchronously again.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>

diff -r 3dad906dec60 -r ed73c0ba9b7e log/log.ml
--- a/log/log.ml        Fri Nov 20 14:22:16 2009 +0000
+++ b/log/log.ml        Wed Nov 25 12:14:08 2009 -0800
@@ -264,7 +264,7 @@
                | Info  -> Syslog.Info
                | Warn  -> Syslog.Warning
                | Error -> Syslog.Err in
-               Syslog.log Syslog.Local6 sys_prio ((construct_string false) ^ 
"\n")
+               Syslog.log Syslog.Daemon sys_prio ((construct_string false) ^ 
"\n")
        | Stream s -> Mutex.execute s.mutex 
            (fun () -> 
              match !(s.channel) with
# HG changeset patch
# User Daniel Stodden <daniel.stodden@xxxxxxxxxx>
# Date 1259180048 28800
# Node ID ed73c0ba9b7e95d81c6ba49c297110750004fd57
# Parent  3dad906dec60a34a95bd8dd3963e02218017efa7
Switch all xapi syslog logging back to 'daemon'.
Since messages to 'daemon' are written asynchronously again.

Signed-off-by: Daniel Stodden <daniel.stodden@xxxxxxxxxx>

diff -r 3dad906dec60 -r ed73c0ba9b7e log/log.ml
--- a/log/log.ml        Fri Nov 20 14:22:16 2009 +0000
+++ b/log/log.ml        Wed Nov 25 12:14:08 2009 -0800
@@ -264,7 +264,7 @@
                | Info  -> Syslog.Info
                | Warn  -> Syslog.Warning
                | Error -> Syslog.Err in
-               Syslog.log Syslog.Local6 sys_prio ((construct_string false) ^ 
"\n")
+               Syslog.log Syslog.Daemon sys_prio ((construct_string false) ^ 
"\n")
        | Stream s -> Mutex.execute s.mutex 
            (fun () -> 
              match !(s.channel) with
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>