mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Removing redudant code.
Filelog with scopes needs the file name to be specified so the first `if` covers scopes too.
This commit is contained in:
parent
f6215129f6
commit
213e81bdbd
1 changed files with 0 additions and 2 deletions
|
@ -80,8 +80,6 @@ class FileLog extends BaseLog {
|
|||
$filename = $this->_path . 'error.log';
|
||||
} elseif (in_array($type, $debugTypes)) {
|
||||
$filename = $this->_path . 'debug.log';
|
||||
} elseif (in_array($type, $this->_config['scopes'])) {
|
||||
$filename = $this->_path . $this->_file;
|
||||
} else {
|
||||
$filename = $this->_path . $type . '.log';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue