Skip to content

Commit c94006b

Browse files
committed
fix: log debug level when a supported workload cannot be found
This removes some noise on snyk-monitor start up when trying to set up a DeploymentConfig informer in every namespace in the cluster.
1 parent 5d04fea commit c94006b

File tree

1 file changed

+2
-2
lines changed
  • src/supervisor/watchers/handlers

1 file changed

+2
-2
lines changed

src/supervisor/watchers/handlers/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ async function isSupportedWorkload(
161161
attemptedApiCall.response.statusCode < 300
162162
);
163163
} catch (error) {
164-
logger.info(
164+
logger.debug(
165165
{ error, workloadKind },
166166
'Failed on Kubernetes API call to list DeploymentConfig',
167167
);
@@ -176,7 +176,7 @@ export async function setupInformer(
176176
const logContext: Record<string, unknown> = { namespace, workloadKind };
177177
const isSupported = await isSupportedWorkload(namespace, workloadKind);
178178
if (!isSupported) {
179-
logger.info(
179+
logger.debug(
180180
logContext,
181181
'The Kubernetes cluster does not support this workload',
182182
);

0 commit comments

Comments
 (0)