]> git.proxmox.com Git - pve-common.git/commit - src/PVE/Tools.pm
tools: Add callback based filtering for logfile dump
authorChristian Ebner <c.ebner@proxmox.com>
Wed, 11 Jan 2023 13:32:20 +0000 (14:32 +0100)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 18 Jan 2023 10:13:35 +0000 (11:13 +0100)
commit12a0ec1888e4c423dbe890b65460a703afb91c47
tree503abc74de1aa15af3d0744d02d42a7d7f0b1ed9
parent2e3fd24d1ac479d30a8713dbd14e8117ebee2fb6
tools: Add callback based filtering for logfile dump

This patch introduces callback based filtering functionality for logfile dumps.
Further, the `dump_logfile` function is split into a reusable part for dumps
generated based on a filehandle. The state parameter can be used to keep the
state for multiple consecutive function invocations.

Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
src/PVE/Tools.pm