Log errors shouldn't be fatal

pull/2185/merge
Isaac Connor 2018-08-22 17:22:40 -04:00
parent d296d59625
commit 21d193294f
1 changed files with 1 additions and 1 deletions

View File

@ -406,7 +406,7 @@ class Logger {
$result = $stmt->execute( array( sprintf( '%d.%06d', $time['sec'], $time['usec'] ), $this->id, getmypid(), $level, $code, $string, $file, $line ) ); $result = $stmt->execute( array( sprintf( '%d.%06d', $time['sec'], $time['usec'] ), $this->id, getmypid(), $level, $code, $string, $file, $line ) );
} catch(PDOException $ex) { } catch(PDOException $ex) {
$this->databaseLevel = self::NOLOG; $this->databaseLevel = self::NOLOG;
Fatal( "Can't write log entry '$sql': ". $ex->getMessage() ); Error("Can't write log entry '$sql': ". $ex->getMessage());
} }
} }
// This has to be last as trigger_error can be fatal // This has to be last as trigger_error can be fatal