浏览代码

error.log moved into the log directory

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2437 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 年之前
父节点
当前提交
539dad1d87
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 1
      application/utils.inc.php
  2. 2 2
      core/metamodel.class.php

+ 1 - 1
application/utils.inc.php

@@ -613,7 +613,7 @@ class utils
 		$bCASDebug = self::GetConfig()->Get('cas_debug');
 		if ($bCASDebug)
 		{
-			phpCAS::setDebug(APPROOT.'/error.log');
+			phpCAS::setDebug(APPROOT.'log/error.log');
 		}
 		
 		if (!self::$m_bCASClient)

+ 2 - 2
core/metamodel.class.php

@@ -4407,12 +4407,12 @@ abstract class MetaModel
 			if (self::$m_oConfig->GetLogIssue())
 			{
 				self::$m_bLogIssue = true;
-				IssueLog::Enable(APPROOT.'/error.log');
+				IssueLog::Enable(APPROOT.'log/error.log');
 			}
 			self::$m_bLogNotification = self::$m_oConfig->GetLogNotification();
 			self::$m_bLogWebService = self::$m_oConfig->GetLogWebService();
 
-			ToolsLog::Enable(APPROOT.'/tools.log');
+			ToolsLog::Enable(APPROOT.'log/tools.log');
 		}
 		else
 		{