logs typo & debug message
This commit is contained in:
parent
065cf7833d
commit
46f8aa7472
1 changed files with 3 additions and 3 deletions
6
app/log.class.php
Normal file → Executable file
6
app/log.class.php
Normal file → Executable file
|
@ -15,9 +15,9 @@ class Log
|
|||
if(!Config::get_safe("logs", false) || !in_array($_file, static::$_files)){
|
||||
return ;
|
||||
}
|
||||
|
||||
if(false === file_put_contents(PROJECT_PATH.static::$_path.$_file.".log", self::line($_text), FILE_APPEND)){
|
||||
trigger_error(sprint("Can't write to %s.log file.", $_file), E_USER_NOTICE);
|
||||
|
||||
if(false === file_put_contents(PROJECT_PATH.static::$_path.$_file.".log", self::line($_text), FILE_APPEND) && Config::get_safe('debug', false)){
|
||||
die(sprintf("Can't write to %s.log file.", $_file));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue