Skip to content

Commit

Permalink
style: Using debug on Windows signal hook
Browse files Browse the repository at this point in the history
  • Loading branch information
gcarreno committed Dec 3, 2024
1 parent 43c82c7 commit 0722020
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/paslogbot.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ procedure SignalHandler(signal: longint; info: psiginfo; context: psigcontext);
SIGTERM, SIGINT:
begin
if signal = SIGINT then WriteLn;
debug('Received termination signal');
debug('Received termination signal.');
if Assigned(Application) then
Application.Terminate;
end;
Expand Down Expand Up @@ -73,7 +73,7 @@ function ConsoleCtrlHandler(CtrlType: DWORD): BOOL; stdcall;
case CtrlType of
CTRL_C_EVENT, CTRL_BREAK_EVENT, CTRL_CLOSE_EVENT:
begin
WriteLn('Received termination signal');
debug('Received termination signal.');
if Assigned(Application) then
Application.Terminate;
Result := True;
Expand Down

0 comments on commit 0722020

Please sign in to comment.