Explorar o código

Optimizing application log

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

Source commit: b62b9db3de627d5f0d9fe53d7aa67970037ba868
Martin Prikryl %!s(int64=3) %!d(string=hai) anos
pai
achega
09c52a7759
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  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)