Explorar o código

Merge branch 'master' into dev

Source commit: 38b8cda8bf6242d37d0cd34f07a6cb326d3acda7
Martin Prikryl %!s(int64=3) %!d(string=hai) anos
pai
achega
86dc87228d
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)