From 029b6fa144ebc218eea2c68d61d60c7bb435aa6c Mon Sep 17 00:00:00 2001 From: GenZmeY Date: Wed, 24 Aug 2022 19:26:18 +0300 Subject: [PATCH] add some logs --- CTI/Classes/CTI.uc | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CTI/Classes/CTI.uc b/CTI/Classes/CTI.uc index fea6f03..8551b74 100644 --- a/CTI/Classes/CTI.uc +++ b/CTI/Classes/CTI.uc @@ -243,14 +243,20 @@ public function NotifyLogin(Controller C) { `Log_Trace(); - CreateRepInfo(C); + if (!CreateRepInfo(C)) + { + `Log_Error("Can't create RepInfo for:" @ C); + } } public function NotifyLogout(Controller C) { `Log_Trace(); - DestroyRepInfo(C); + if (!DestroyRepInfo(C)) + { + `Log_Error("Can't destroy RepInfo of:" @ C); + } } public function bool CreateRepInfo(Controller C)