report module loading errors to apache log during preload

This commit is contained in:
Graham Knop 2007-09-11 23:45:42 +00:00
parent 0dd8cf75e2
commit a94c7b1a4b
2 changed files with 5 additions and 2 deletions

View file

@ -38,6 +38,7 @@
- fix: Fixed SyncProfileToLDAP workflow activity to properly sync if RDN does not match DN
- fix: SQL Report download link doesn't include form parameters
- fix: Errors generated in webgui.log when viewing last thread
- Report errors on loading modules to Apache log during preload
7.4.5
- fix: Apostrophy incorrectly escaped as double quote in some places

View file

@ -68,8 +68,10 @@ foreach my $lib (@{$customLibs}) {
File::Find::find(\&getWebGUIModules, @folders);
foreach my $package (@modules) {
next if (WebGUI::Utility::isIn($package,@excludes));
my $use = "use ".$package." ()";
eval($use);
(my $file = "$package.pm") =~ s{::|'}{/}g;
if (!eval { require $file; 1 }) {
warn "Error loading $package! - $@";
}
}
use Apache2::ServerUtil ();