Ver código fonte

Optimizing application log

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

Source commit: b62b9db3de627d5f0d9fe53d7aa67970037ba868
Martin Prikryl 3 anos atrás
pai
commit
09c52a7759
1 arquivos alterados com 4 adições e 1 exclusões
  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)