truncate file when logging to 255 chars so it gets into the db
This commit is contained in:
parent
9b3d423f3d
commit
c2ac171811
|
@ -413,6 +413,9 @@ class Logger {
|
|||
|
||||
$message = $code.' ['.$string.']';
|
||||
if ( $level <= $this->databaseLevel ) {
|
||||
if ( strlen($file) > 255 )
|
||||
$file = substr($file, 0, 255);
|
||||
|
||||
try {
|
||||
global $dbConn;
|
||||
$sql = 'INSERT INTO `Logs` ( `TimeKey`, `Component`, `ServerId`, `Pid`, `Level`, `Code`, `Message`, `File`, `Line` ) VALUES ( ?, ?, ?, ?, ?, ?, ?, ?, ? )';
|
||||
|
|
Loading…
Reference in New Issue