Commit e21c841d7aa372f305f3e6e9eaccf0e20195bb96

Authored by Neil Blakey-Milner
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,8 +85,11 @@ class KTInit {
85 85
86 require_once("Log.php"); 86 require_once("Log.php");
87 $default->phpErrorLog =& Log::factory('composite'); 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 if ($default->developmentWindowLog) { 94 if ($default->developmentWindowLog) {
92 $windowLog =& Log::factory('win', 'LogWindow', 'BLAH'); 95 $windowLog =& Log::factory('win', 'LogWindow', 'BLAH');
@@ -296,6 +299,7 @@ $default->logLevel = 'INFO'; @@ -296,6 +299,7 @@ $default->logLevel = 'INFO';
296 299
297 $default->useDatabaseConfiguration = false; 300 $default->useDatabaseConfiguration = false;
298 $default->developmentWindowLog = false; 301 $default->developmentWindowLog = false;
  302 +$default->phpErrorLogFile = false;
299 $default->genericMetaDataRequired = true; 303 $default->genericMetaDataRequired = true;
300 304
301 $default->sslEnabled = false; 305 $default->sslEnabled = false;