From e85d383f439d8d2faddfaee70b16ff7d6077add8 Mon Sep 17 00:00:00 2001 From: Aditya Choudhari Date: Sat, 31 Aug 2024 19:52:58 -0700 Subject: [PATCH] fix: Add more informative logging to target scan --- apps/event-worker/src/target-scan/gke.ts | 2 +- apps/event-worker/src/target-scan/google.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/event-worker/src/target-scan/gke.ts b/apps/event-worker/src/target-scan/gke.ts index e198c522..2a95951b 100644 --- a/apps/event-worker/src/target-scan/gke.ts +++ b/apps/event-worker/src/target-scan/gke.ts @@ -36,7 +36,7 @@ export const getGkeTargets = async ( const clusters = await getClusters(googleClusterClient, project); return { project, clusters }; } catch (e) { - log.error("error getting clusters"); + log.error("error getting clusters" + String(e)); return { project, clusters: [] }; } }), diff --git a/apps/event-worker/src/target-scan/google.ts b/apps/event-worker/src/target-scan/google.ts index fc85320d..7325c5cb 100644 --- a/apps/event-worker/src/target-scan/google.ts +++ b/apps/event-worker/src/target-scan/google.ts @@ -36,7 +36,7 @@ export const getGoogleClusterClient = async ( log.info("got cluster client"); return clusterClient; } catch (e) { - log.error(e); + log.error("error getting cluster client: " + String(e)); } };