]>
git.proxmox.com Git - pve-ha-manager.git/commitdiff
projects
/
pve-ha-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0e9158
)
Env: allow debug logging
author
Thomas Lamprecht
<t.lamprecht@proxmox.com>
Fri, 29 Apr 2016 14:41:31 +0000
(16:41 +0200)
committer
Dietmar Maurer
<dietmar@proxmox.com>
Fri, 29 Apr 2016 14:50:02 +0000
(16:50 +0200)
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@proxmox.com>
src/PVE/HA/Sim/TestEnv.pm
patch
|
blob
|
blame
|
history
diff --git
a/src/PVE/HA/Sim/TestEnv.pm
b/src/PVE/HA/Sim/TestEnv.pm
index ceec2a52f07dbfdf4af21d5c1f1f7b52732c88dd..93aeede5ea264750e165b2d40095e4e3c859b186 100644
(file)
--- 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();