add more debug verbosity

This commit is contained in:
Jordi Sanfeliu 2014-04-08 13:10:04 +02:00
parent 198cc361e6
commit db6e2739bf
2 changed files with 3 additions and 3 deletions

View File

@ -625,7 +625,7 @@ while(1) {
eval "use emailreports qw(emailreports_send)"; eval "use emailreports qw(emailreports_send)";
if($@) { if($@) {
logger("WARNING: unable to find module 'emailreports'"); logger("WARNING: unable to load module 'emailreports'. $@");
next; next;
} }

View File

@ -463,7 +463,7 @@ if($mode eq "localhost") {
eval "use $g qw(" . $cgi . ")"; eval "use $g qw(" . $cgi . ")";
if($@) { if($@) {
print(STDERR "WARNING: unable to find module '$g'\n"); print(STDERR "WARNING: unable to load module '$g. $@'\n");
next; next;
} }
@ -478,7 +478,7 @@ if($mode eq "localhost") {
} elsif($mode eq "traffacct") { } elsif($mode eq "traffacct") {
eval "use $mode qw(traffacct_cgi)"; eval "use $mode qw(traffacct_cgi)";
if($@) { if($@) {
print(STDERR "WARNING: unable to find module '$mode'\n"); print(STDERR "WARNING: unable to load module '$mode'. $@\n");
exit; exit;
} }
traffacct_cgi($mode, \%config, \%cgi); traffacct_cgi($mode, \%config, \%cgi);