From c1eee655dd21deb78d56dd997f28732416128748 Mon Sep 17 00:00:00 2001 From: Molkobain Date: Fri, 12 Mar 2021 10:35:06 +0100 Subject: [PATCH] Activity panel: Improve debug messages --- .../UI/Base/Layout/ActivityPanel/ActivityPanelFactory.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sources/application/UI/Base/Layout/ActivityPanel/ActivityPanelFactory.php b/sources/application/UI/Base/Layout/ActivityPanel/ActivityPanelFactory.php index 59bf4e4cc5..4d22d74c24 100644 --- a/sources/application/UI/Base/Layout/ActivityPanel/ActivityPanelFactory.php +++ b/sources/application/UI/Base/Layout/ActivityPanel/ActivityPanelFactory.php @@ -114,7 +114,7 @@ class ActivityPanelFactory $oEntry = ActivityEntryFactory::MakeFromCmdbChangeOp($oChangeOp); } catch (Exception $oException) { - IssueLog::Debug(static::class.': Could not create entry from CMDBChangeOp: '.$oException->getMessage()); + IssueLog::Debug(static::class.': Could not create entry from CMDBChangeOp #'.$oChangeOp->GetKey().' related to '.$oChangeOp->Get('objclass').'::'.$oChangeOp->Get('objkey').': '.$oException->getMessage()); continue; } // If same CMDBChange and mergeable edits entry from the same author, we merge them @@ -150,7 +150,7 @@ class ActivityPanelFactory $oEntry = ActivityEntryFactory::MakeFromEventNotification($oNotifEvent); } catch (Exception $oException) { - IssueLog::Debug(static::class.': Could not create entry from EventNotification: '.$oException->getMessage()); + IssueLog::Debug(static::class.': Could not create entry from EventNotification #'.$oNotifEvent->GetKey().' related to trigger "'.$oNotifEvent->Get('trigger_id_friendlyname').'" / action "'.$oNotifEvent->Get('action_id_friendlyname').'" / object #'.$oNotifEvent->Get('object_id').': '.$oException->getMessage()); continue; }