]> git.proxmox.com Git - pve-firewall.git/commitdiff
do not log simulate warnings to syslog
authorDietmar Maurer <dietmar@proxmox.com>
Tue, 20 May 2014 08:50:25 +0000 (10:50 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 20 May 2014 08:50:25 +0000 (10:50 +0200)
src/pve-firewall

index c8e9559fc0a568a5f8a238b0d33ed877aac56ec7..b8584fec436f26d571a4504934041d24061b0a95 100755 (executable)
@@ -444,6 +444,8 @@ __PACKAGE__->register_method ({
     code => sub {
        my ($param) = @_;
 
+       local $SIG{'__WARN__'} = 'DEFAULT'; # do not fill up syslog
+
        my ($ruleset, $ipset_ruleset) = PVE::Firewall::compile();
 
        PVE::FirewallSimulator::debug($param->{verbose} || 0);