Browse Source

Merge branch 'master' into dev

Source commit: 38b8cda8bf6242d37d0cd34f07a6cb326d3acda7
Martin Prikryl 3 years ago
parent
commit
86dc87228d
1 changed files with 4 additions and 1 deletions
  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()
 void TApplicationLog::AddStartupInfo()
 {
 {
-  TSessionLog::DoAddStartupInfo(Log, Configuration);
+  if (Logging)
+  {
+    TSessionLog::DoAddStartupInfo(Log, Configuration);
+  }
 }
 }
 //---------------------------------------------------------------------------
 //---------------------------------------------------------------------------
 void __fastcall TApplicationLog::Log(const UnicodeString & S)
 void __fastcall TApplicationLog::Log(const UnicodeString & S)