From db6e2739bf7ada8a2aad8c7c7d10f3a7e60af179 Mon Sep 17 00:00:00 2001 From: Jordi Sanfeliu Date: Tue, 8 Apr 2014 13:10:04 +0200 Subject: [PATCH] add more debug verbosity --- monitorix | 2 +- monitorix.cgi | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/monitorix b/monitorix index ce9f0ee..7dfe8ec 100755 --- a/monitorix +++ b/monitorix @@ -625,7 +625,7 @@ while(1) { eval "use emailreports qw(emailreports_send)"; if($@) { - logger("WARNING: unable to find module 'emailreports'"); + logger("WARNING: unable to load module 'emailreports'. $@"); next; } diff --git a/monitorix.cgi b/monitorix.cgi index 11b1ca2..a388fec 100755 --- a/monitorix.cgi +++ b/monitorix.cgi @@ -463,7 +463,7 @@ if($mode eq "localhost") { eval "use $g qw(" . $cgi . ")"; if($@) { - print(STDERR "WARNING: unable to find module '$g'\n"); + print(STDERR "WARNING: unable to load module '$g. $@'\n"); next; } @@ -478,7 +478,7 @@ if($mode eq "localhost") { } elsif($mode eq "traffacct") { eval "use $mode qw(traffacct_cgi)"; if($@) { - print(STDERR "WARNING: unable to find module '$mode'\n"); + print(STDERR "WARNING: unable to load module '$mode'. $@\n"); exit; } traffacct_cgi($mode, \%config, \%cgi);