[pve-devel] [PATCH pve-ha-manager 2/4] adjust log level on failed start and error to warning

Thomas Lamprecht t.lamprecht at proxmox.com
Wed Sep 16 11:25:16 CEST 2015


use warning instead of info to represent the significance of the
log message

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/HA/Env/PVE2.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/PVE/HA/Env/PVE2.pm b/src/PVE/HA/Env/PVE2.pm
index 5d126b0..22cedca 100644
--- a/src/PVE/HA/Env/PVE2.pm
+++ b/src/PVE/HA/Env/PVE2.pm
@@ -411,7 +411,7 @@ sub exec_resource_agent {
 	    $self->log("info", "service status $sid started");
 	    return 0;
 	} else {
-	    $self->log("info", "unable to start service $sid");
+	    $self->log("warning", "unable to start service $sid");
 	    return 1;
 	}
 
@@ -477,7 +477,7 @@ sub exec_resource_agent {
 	if($running) {
 	    $self->log("err", "service $sid is in an error state while running");
 	} else {
-	    $self->log("info", "service $sid is not running and in an error state");
+	    $self->log("warning", "service $sid is not running and in an error state");
 	}
 	return 0;
 
-- 
2.1.4



More information about the pve-devel mailing list