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)";
|
eval "use emailreports qw(emailreports_send)";
|
||||||
if($@) {
|
if($@) {
|
||||||
logger("WARNING: unable to find module 'emailreports'");
|
logger("WARNING: unable to load module 'emailreports'. $@");
|
||||||
next;
|
next;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue