Removed an out of date call to try to recover from fatal error.
This commit is contained in:
parent
03175dcbcb
commit
82ae618adc
1 changed files with 2 additions and 3 deletions
|
|
@ -37,9 +37,8 @@ sub fatalError {
|
|||
if (exists $session{config}{logfile}) {
|
||||
$logfile = $session{config}{logfile};
|
||||
} else {
|
||||
use Data::Config;
|
||||
$config = new Data::Config '../etc/WebGUI.conf';
|
||||
$logfile = $config->param('logfile');
|
||||
print STDOUT "ERROR! Cannot open log file. No session information available. Exiting.\n";
|
||||
exit 1;
|
||||
}
|
||||
print "<h1>WebGUI Fatal Error</h1>Something unexpected happened that caused this system to fault.<p>" if ($session{setting}{showDebug});
|
||||
$log = FileHandle->new(">>$logfile") or print "Can't open log file: ".$logfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue