From 7f2403aa647e72d83ec00ac596dfbef778945ff0 Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 24 Nov 2018 21:13:20 +1300 Subject: Add option to reduce log noise --- idalius.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'idalius.pl') diff --git a/idalius.pl b/idalius.pl index 7e2e775..d19087d 100755 --- a/idalius.pl +++ b/idalius.pl @@ -348,6 +348,10 @@ sub irc_delay_removed { sub _default { my ($event, $args) = @_[ARG0 .. $#_]; + + # exit early unless in debug mode + return unless $config->{_}->{log_debug}; + my @output = ( "$event: " ); for my $arg (@$args) { -- cgit v1.1