]> git.proxmox.com Git - pve-guest-common.git/commit
vzdump: use worker aware log_warn from rest environment for warn level
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jul 2023 13:02:36 +0000 (15:02 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Wed, 5 Jul 2023 14:21:21 +0000 (16:21 +0200)
commit1f9d7367217a9b0d90aa483450cf72e49595d3de
tree53ddce6d2fb562d5a40853e595b2cd04aacc95b3
parentaf536a40f34114d7f67a65bfd22b710c85f805b2
vzdump: use worker aware log_warn from rest environment for warn level

This ensures that the alert counter is incremented when a message
with such a level is logged, and that the task is prominently marked
in the web UI task log.

The log_warn produces the exact same message format for the warn
level, so we can just swap printing to STDERR for the warning level
without any change to the resulting text in the log. Keep printing to
the (on storage saved) backup log-fd as is.

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
src/PVE/VZDump/Plugin.pm