From 0722020954852844ba80488d6ea88dd4c9626caf Mon Sep 17 00:00:00 2001 From: Gustavo Carreno Date: Tue, 3 Dec 2024 19:42:14 +0000 Subject: [PATCH] style: Using `debug` on Windows signal hook --- src/paslogbot.lpr | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/paslogbot.lpr b/src/paslogbot.lpr index 9685fa7..d572ab5 100644 --- a/src/paslogbot.lpr +++ b/src/paslogbot.lpr @@ -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; @@ -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;