mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-07 18:58:04 +02:00
LazLogger: optimized some log function
This commit is contained in:
parent
86b559253b
commit
c74bd43729
@ -1151,7 +1151,7 @@ procedure TLazLogger.DebugLnExit(LogEnabled: TLazLoggerLogEnabled;
|
||||
var
|
||||
t: String;
|
||||
begin
|
||||
t := ArgsToString(Args);
|
||||
if LogEnabled.Enabled then t := ArgsToString(Args);
|
||||
DecreaseIndent(LogEnabled);
|
||||
if not LogEnabled.Enabled then exit;
|
||||
DoDebugLn(t, LogEnabled.Group);
|
||||
@ -1162,7 +1162,7 @@ procedure TLazLogger.DebugLnExit(LogEnabled: TLazLoggerLogEnabled; s: string;
|
||||
var
|
||||
t: String;
|
||||
begin
|
||||
t := Format(S, Args);
|
||||
if LogEnabled.Enabled then t := Format(S, Args);
|
||||
DecreaseIndent(LogEnabled);
|
||||
if not LogEnabled.Enabled then exit;
|
||||
DoDebugLn(t, LogEnabled.Group);
|
||||
|
Loading…
Reference in New Issue
Block a user