[pve-devel] [PATCH container 6/6] vzdump: use 'warn' level for warranted log calls

Thomas Lamprecht t.lamprecht at proxmox.com
Fri Sep 1 15:24:31 CEST 2017


Signed-off-by: Thomas Lamprecht <t.lamprecht at proxmox.com>
---
 src/PVE/VZDump/LXC.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/PVE/VZDump/LXC.pm b/src/PVE/VZDump/LXC.pm
index 45a851c..818eac3 100644
--- a/src/PVE/VZDump/LXC.pm
+++ b/src/PVE/VZDump/LXC.pm
@@ -142,7 +142,7 @@ sub prepare {
 
 
 	if ($conf->{snapshots} && $conf->{snapshots}->{vzdump}) {
-	    $self->loginfo("found old vzdump snapshot (force removal)");
+	    $self->log('warn', "found old vzdump snapshot (force removal)");
 	    PVE::LXC::Config->lock_config($vmid, sub {
 		$self->unlock_vm($vmid);
 		PVE::LXC::Config->snapshot_delete($vmid, 'vzdump', 1);
-- 
2.11.0





More information about the pve-devel mailing list