[pve-devel] [PATCH ha-manager v2 2/2] Env: allow debug logging

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Apr 29 16:41:31 CEST 2016


this can be helpful if someone wants to quickly add debug output for
a real world or simulator test, witout touching the regression tests

Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---

changes since v1:
* use debug level also in syslog, mapping it to warning was nonsense

 src/PVE/HA/Sim/TestEnv.pm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/PVE/HA/Sim/TestEnv.pm b/src/PVE/HA/Sim/TestEnv.pm
index ceec2a5..93aeede 100644
--- a/src/PVE/HA/Sim/TestEnv.pm
+++ b/src/PVE/HA/Sim/TestEnv.pm
@@ -39,6 +39,8 @@ sub get_time {
 sub log {
     my ($self, $level, $msg) = @_;
 
+    return if $level eq 'debug';
+
     chomp $msg;
 
     my $time = $self->get_time();
-- 
2.1.4




More information about the pve-devel mailing list