{
MegaBrutal's SMTP Server (MgSMTP)
- Copyright (C) 2010-2014 MegaBrutal
+ Copyright (C) 2010-2018 MegaBrutal
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
function TLogger.AddStdLine(Line: string): boolean;
{ Log message to both stdout and smtp.log. }
+var outresult, logresult: boolean;
begin
- Result:= Out.AddLine(Line) and AddLine(Line);
+ outresult:= Out.AddLine(Line);
+ logresult:= AddLine(Line);
+ Result:= outresult and logresult;
end;
function TLogger.AddStdLine(Agent, Line: string): boolean;
{ Log message to both stdout and smtp.log. }
+var outresult, logresult: boolean;
begin
- Result:= Out.AddLine(Agent, Line) and AddLine(Agent, Line);
+ outresult:= Out.AddLine(Agent, Line);
+ logresult:= AddLine(Agent, Line);
+ Result:= outresult and logresult;
end;