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 11 of 11] CA-35165: Reduce the amount of log spam creat

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 11 of 11] CA-35165: Reduce the amount of log spam created by the xenstore watching code
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Mon, 30 Nov 2009 15:41:03 +0000
Delivery-date: Mon, 30 Nov 2009 07:44:42 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1259595652@xxxxxxxxxxxxxxxxxxxx>
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
# HG changeset patch
# User David Scott <dave.scott@xxxxxxxxxxxxx>
# Date 1259595428 0
# Node ID e24ebc4eae4bc1f411a0391ece4509733f296cf9
# Parent  290db74fb2539851f8b8d595b484796c2cfc358b
CA-35165: Reduce the amount of log spam created by the xenstore watching code.

Signed-off-by: David Scott <dave.scott@xxxxxxxxxxxxx>

diff -r 290db74fb253 -r e24ebc4eae4b ocaml/xenops/watch.ml
--- a/ocaml/xenops/watch.ml     Mon Nov 30 15:37:07 2009 +0000
+++ b/ocaml/xenops/watch.ml     Mon Nov 30 15:37:08 2009 +0000
@@ -45,7 +45,6 @@
   let time_taken () = Unix.gettimeofday () -. start_time in
 
   let callback (path, _) = 
-    debug "watch: fired on %s" path; 
     match x.evaluate ~xs with
     | KeepWaiting -> false
     | Result x -> result := Some x; true in
@@ -60,7 +59,6 @@
     else Xs.monitor_paths xs (List.map (fun path -> path, "X") x.paths) 
timeout callback;
       begin match !result with
       | Some x -> 
-         debug "watch: Successfully finished watching xenstore after %f 
seconds" (time_taken ());
          x
       | None -> 
          (* should never happen *) 
1 file changed, 2 deletions(-)
ocaml/xenops/watch.ml |    2 --


Attachment: xen-api.hg-11.patch
Description: Text Data

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>