Browse Source

Removing redudant code.
Filelog with scopes needs the file name to be specified so the first `if` covers scopes too.

ADmad 13 years ago
parent
commit
213e81bdbd
1 changed files with 0 additions and 2 deletions
  1. 0 2
      lib/Cake/Log/Engine/FileLog.php

+ 0 - 2
lib/Cake/Log/Engine/FileLog.php

@@ -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';
 		}