瀏覽代碼

Optimizing application log

(it also makes bugs like Bug 2101 less likely to occur)

Source commit: b62b9db3de627d5f0d9fe53d7aa67970037ba868
Martin Prikryl 3 年之前
父節點
當前提交
09c52a7759
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      source/core/SessionInfo.cpp

+ 4 - 1
source/core/SessionInfo.cpp

@@ -1788,7 +1788,10 @@ void TApplicationLog::Enable(const UnicodeString & Path)
 //---------------------------------------------------------------------------
 void TApplicationLog::AddStartupInfo()
 {
-  TSessionLog::DoAddStartupInfo(Log, Configuration);
+  if (Logging)
+  {
+    TSessionLog::DoAddStartupInfo(Log, Configuration);
+  }
 }
 //---------------------------------------------------------------------------
 void __fastcall TApplicationLog::Log(const UnicodeString & S)