Skip to content

Commit

Permalink
Removing redudant code.
Browse files Browse the repository at this point in the history
Filelog with scopes needs the file name to be specified so the first `if` covers scopes too.
  • Loading branch information
ADmad committed Feb 12, 2013
1 parent f621512 commit 213e81b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions lib/Cake/Log/Engine/FileLog.php
Expand Up @@ -80,8 +80,6 @@ public function write($type, $message) {
$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';
}
Expand Down

0 comments on commit 213e81b

Please sign in to comment.