mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 10:18:05 +02:00
LazLogger: fix parsing parameters (handling "=") / Issue #39812
This commit is contained in:
parent
795b94703f
commit
20a05aea86
@ -569,7 +569,11 @@ end;
|
||||
|
||||
procedure TLazLoggerFile.SetParamForLogFileName(AValue: String);
|
||||
begin
|
||||
if FParamForLogFileName = AValue then Exit;
|
||||
if (AValue <> '') and (AValue[Length(AValue)] = '=') then
|
||||
Delete(AValue, Length(AValue), 1);
|
||||
if FParamForLogFileName = AValue then
|
||||
Exit;
|
||||
|
||||
Finish;
|
||||
FGetLogFileNameDone := False;
|
||||
FParamForLogFileName := AValue;
|
||||
@ -800,7 +804,7 @@ begin
|
||||
FParamForLogFileName := '';
|
||||
FEnvironmentForLogFileName := '';
|
||||
{$else}
|
||||
FParamForLogFileName := '--debug-log=';
|
||||
FParamForLogFileName := '--debug-log';
|
||||
FEnvironmentForLogFileName := '*_debuglog';
|
||||
{$endif}
|
||||
end;
|
||||
|
@ -1166,7 +1166,11 @@ end;
|
||||
|
||||
procedure TLazLoggerWithGroupParam.SetParamForEnabledLogGroups(AValue: String);
|
||||
begin
|
||||
if FParamForEnabledLogGroups = AValue then Exit;
|
||||
if (AValue <> '') and (AValue[Length(AValue)] = '=') then
|
||||
Delete(AValue, Length(AValue), 1);
|
||||
if FParamForEnabledLogGroups = AValue then
|
||||
Exit;
|
||||
|
||||
FParamForEnabledLogGroups := AValue;
|
||||
ParseParamForEnabledLogGroups;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user