[pve-devel] [PATCH ha-manager 2/3] truncate log level in regression tests
Thomas Lamprecht
t.lamprecht at proxmox.com
Wed Feb 10 14:13:43 CET 2016
this is mainly for formatting (prettiness) purpose but helps when
going through an output of a test.
Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
src/PVE/HA/Sim/TestEnv.pm | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/PVE/HA/Sim/TestEnv.pm b/src/PVE/HA/Sim/TestEnv.pm
index 414c274..3f92fb0 100644
--- a/src/PVE/HA/Sim/TestEnv.pm
+++ b/src/PVE/HA/Sim/TestEnv.pm
@@ -42,6 +42,7 @@ sub log {
chomp $msg;
my $time = $self->get_time();
+ $level = substr( $level, 0, 4 );
my $line = sprintf("%-5s %5d %12s: $msg\n", $level, $time, "$self->{nodename}/$self->{log_id}");
print $line;
--
2.1.4
More information about the pve-devel
mailing list