aboutsummaryrefslogtreecommitdiff
path: root/idalius.pl
diff options
context:
space:
mode:
authorDavid Phillips <david@yeah.nah.nz>2018-11-24 21:13:20 +1300
committerDavid Phillips <david@yeah.nah.nz>2018-11-24 21:13:44 +1300
commit7f2403aa647e72d83ec00ac596dfbef778945ff0 (patch)
tree2710c98e2af0feee8172ba1cc4c9b0bd38ded2ae /idalius.pl
parent47e5bdaa4017df0fdb3015b2da57c0a95c0a089b (diff)
downloadidalius-7f2403aa647e72d83ec00ac596dfbef778945ff0.tar.xz
Add option to reduce log noise
Diffstat (limited to 'idalius.pl')
-rwxr-xr-xidalius.pl4
1 files changed, 4 insertions, 0 deletions
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) {