From f3f7364c5bfe2d07ccc92ddda3edad1b26439eaa Mon Sep 17 00:00:00 2001 From: Gonzalo Avalos Ribas Date: Thu, 1 Aug 2024 10:35:14 -0300 Subject: [PATCH] Add even more error handling --- src/util/cmdbHierarchyUtils.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/util/cmdbHierarchyUtils.ts b/src/util/cmdbHierarchyUtils.ts index 95490bd..4657ba0 100644 --- a/src/util/cmdbHierarchyUtils.ts +++ b/src/util/cmdbHierarchyUtils.ts @@ -70,7 +70,11 @@ async function getParentClass( } } catch (error) { logger.error( - { err: error, sysDbQueryResponseData: dictionariesPaginatedResponse }, + { + err: error, + sysclass: sysClassName, + sysDbQueryResponseData: JSON.stringify(dictionariesPaginatedResponse), + }, 'Could not find super class', ); throw error;