Skip to content
Permalink
Browse files

Removing redudant code.

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 213e81bdbdff7fbde633c08f62abc5462f50d231
Showing with 0 additions and 2 deletions.
  1. +0 −2 lib/Cake/Log/Engine/FileLog.php
@@ -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';
}

0 comments on commit 213e81b

Please sign in to comment.
You can’t perform that action at this time.