]> git.proxmox.com Git - pve-guest-common.git/commitdiff
abstract migrate: rename tstr to prefix
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Jan 2023 12:00:33 +0000 (13:00 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Thu, 12 Jan 2023 12:00:33 +0000 (13:00 +0100)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/AbstractMigrate.pm

index a836c13ced89b09849f8a50f48182684d1fa16b8..22a3fa744fe82ae855a98b8c5a7fa2bbd205839b 100644 (file)
@@ -18,15 +18,14 @@ my $msg2text = sub {
     chomp $msg;
     return '' if !$msg;
 
-    my $res = '';
-
-    my $tstr = strftime("%F %H:%M:%S", localtime);
+    my $prefix = strftime("%F %H:%M:%S", localtime);
 
+    my $res = '';
     foreach my $line (split (/\n/, $msg)) {
        if ($level eq 'err') {
-           $res .= "$tstr ERROR: $line\n";
+           $res .= "$prefix ERROR: $line\n";
        } else {
-           $res .= "$tstr $line\n";
+           $res .= "$prefix $line\n";
        }
     }