mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 01:39:31 +02:00
LazLogger: Comments / Ifdef'ed flush log
git-svn-id: trunk@60244 -
This commit is contained in:
parent
591bb0ff09
commit
a9f2cac891
@ -70,6 +70,8 @@ type
|
||||
|
||||
{ TLazLoggerFileHandleThreadSave
|
||||
file operations in critical section
|
||||
|
||||
Requires that DoOpenFile is called by main thread. Otherwise the filehandle may get closed...
|
||||
}
|
||||
|
||||
TLazLoggerFileHandleThreadSave = class (TLazLoggerFileHandle)
|
||||
@ -480,6 +482,7 @@ begin
|
||||
if FActiveLogText = nil then exit;
|
||||
|
||||
Write(FActiveLogText^, s);
|
||||
{$IFDEF LAZLOGGER_FLUSH} Flush(FActiveLogText^); {$ENDIF}
|
||||
|
||||
if FCloseLogFileBetweenWrites then
|
||||
DoCloseFile;
|
||||
|
Loading…
Reference in New Issue
Block a user