Browse Source

Optimizing application log

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

Source commit: b62b9db3de627d5f0d9fe53d7aa67970037ba868
Martin Prikryl 3 năm trước cách đây
mục cha
commit
09c52a7759
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  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)