Commit e21c841d7aa372f305f3e6e9eaccf0e20195bb96
1 parent
ce56f5cc
Only log to php_error_log if requested to do so with phpErrorLogFile
git-svn-id: https://kt-dms.svn.sourceforge.net/svnroot/kt-dms/trunk@3243 c91229c3-7414-0410-bfa2-8a42b809f60b
Showing
1 changed file
with
6 additions
and
2 deletions
config/dmsDefaults.php
| ... | ... | @@ -85,8 +85,11 @@ class KTInit { |
| 85 | 85 | |
| 86 | 86 | require_once("Log.php"); |
| 87 | 87 | $default->phpErrorLog =& Log::factory('composite'); |
| 88 | - $fileLog =& Log::factory('file', $default->fileSystemRoot . "/log/php_error_log", 'BLAH'); | |
| 89 | - $default->phpErrorLog->addChild($fileLog); | |
| 88 | + | |
| 89 | + if ($default->phpErrorLogFile) { | |
| 90 | + $fileLog =& Log::factory('file', $default->fileSystemRoot . "/log/php_error_log", 'BLAH'); | |
| 91 | + $default->phpErrorLog->addChild($fileLog); | |
| 92 | + } | |
| 90 | 93 | |
| 91 | 94 | if ($default->developmentWindowLog) { |
| 92 | 95 | $windowLog =& Log::factory('win', 'LogWindow', 'BLAH'); |
| ... | ... | @@ -296,6 +299,7 @@ $default->logLevel = 'INFO'; |
| 296 | 299 | |
| 297 | 300 | $default->useDatabaseConfiguration = false; |
| 298 | 301 | $default->developmentWindowLog = false; |
| 302 | +$default->phpErrorLogFile = false; | |
| 299 | 303 | $default->genericMetaDataRequired = true; |
| 300 | 304 | |
| 301 | 305 | $default->sslEnabled = false; | ... | ... |