[pve-devel] [RFC v2 common 2/2] REST environment: allow export of log_warn

Fabian Ebner f.ebner at proxmox.com
Fri Oct 29 13:16:23 CEST 2021


Signed-off-by: Fabian Ebner <f.ebner at proxmox.com>
---

New in v2.

 src/PVE/RESTEnvironment.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/PVE/RESTEnvironment.pm b/src/PVE/RESTEnvironment.pm
index bf10040..1b2af08 100644
--- a/src/PVE/RESTEnvironment.pm
+++ b/src/PVE/RESTEnvironment.pm
@@ -8,6 +8,7 @@ package PVE::RESTEnvironment;
 use strict;
 use warnings;
 
+use Exporter qw(import);
 use Fcntl qw(:flock);
 use IO::File;
 use IO::Handle;
@@ -20,6 +21,8 @@ use PVE::ProcFSTools;
 use PVE::SafeSyslog;
 use PVE::Tools;
 
+our @EXPORT_OK = qw(log_warn);
+
 my $rest_env;
 
 # save $SIG{CHLD} handler implementation.
-- 
2.30.2






More information about the pve-devel mailing list