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 1 of 3] CA-35893: fix some misleading logging messages

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] [PATCH 1 of 3] CA-35893: fix some misleading logging messages
From: David Scott <dave.scott@xxxxxxxxxxxxx>
Date: Thu, 17 Dec 2009 14:09:15 +0000
Delivery-date: Thu, 17 Dec 2009 06:09:32 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <patchbomb.1261058954@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 1261058925 0
# Node ID c4de6840cf14a2c66c6629d3927419e02d08d00c
# Parent  4971edbcd68cce4412df8201ea0c086a144033af
CA-35893: fix some misleading logging messages

These debug messages are printed for all internal shutdowns, not just crashes.

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

diff -r 4971edbcd68c -r c4de6840cf14 ocaml/xapi/events.ml
--- a/ocaml/xapi/events.ml      Tue Dec 15 20:24:14 2009 +0000
+++ b/ocaml/xapi/events.ml      Thu Dec 17 14:08:45 2009 +0000
@@ -168,18 +168,18 @@
          (fun () -> Crashdump.make ~__context vm domid)
          (fun () -> perform_restart ~__context ~vm token)
     | `coredump_and_destroy ->
-       debug "domid %d actions_after_crash = coredump_and_destroy" domid;
+       debug "domid %d actions = coredump_and_destroy" domid;
        finally 
          (fun () -> Crashdump.make ~__context vm domid)
          (fun () -> perform_destroy ~__context ~vm token)
     | `restart ->
-       debug "domid %d actions_after_crash = restart" domid;
+       debug "domid %d actions = restart" domid;
        perform_restart ~__context ~vm token
     | `destroy ->
-       debug "domid %d actions_after_crash = destroy" domid;
+       debug "domid %d actions = destroy" domid;
        perform_destroy ~__context ~vm token
     | `rename_restart ->
-       warn "domid %d actions_after_crash = rename_restart but this is not 
supported." domid;
+       warn "domid %d actions = rename_restart; performing a restart instead." 
domid;
        perform_restart ~__context ~vm token
 
   let on_reboot ~__context ~vm token =
1 file changed, 4 insertions(+), 4 deletions(-)
ocaml/xapi/events.ml |    8 ++++----


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

_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api