mirror of https://github.com/mikaku/Monitorix.git
add more debug verbosity
This commit is contained in:
parent
198cc361e6
commit
db6e2739bf
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue