Skip to content

Commit

Permalink
fix: Add more informative logging to target scan
Browse files Browse the repository at this point in the history
  • Loading branch information
adityachoudhari26 committed Sep 1, 2024
1 parent 21e8383 commit e85d383
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apps/event-worker/src/target-scan/gke.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] };
}
}),
Expand Down
2 changes: 1 addition & 1 deletion apps/event-worker/src/target-scan/google.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
};

Expand Down

0 comments on commit e85d383

Please sign in to comment.