Skip to content

Commit

Permalink
change some error level log
Browse files Browse the repository at this point in the history
  • Loading branch information
kdelemme committed Mar 4, 2025
1 parent 5d03ba4 commit 1a4a555
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class KibanaSavedObjectsSLORepository implements SLORepository {
});

if (isLeft(result)) {
this.logger.error(`Invalid stored SLO with id [${storedSLO.id}]`);
this.logger.debug(`Invalid stored SLO with id [${storedSLO.id}]`);
return undefined;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ export class DefaultSummarySearchClient implements SummarySearchClient {
}),
};
} catch (err) {
this.logger.error(`Error while searching SLO summary documents. ${err}`);
this.logger.debug(`Error while searching SLO summary documents. ${err}`);
return { total: 0, ...pagination, results: [] };
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export class TempSummaryCleanupTask {
}

if (!plugins.taskManager) {
this.logger.error('Missing required service during start');
this.logger.debug('Missing required service during start');
return;
}

Expand All @@ -87,7 +87,7 @@ export class TempSummaryCleanupTask {
params: {},
});
} catch (e) {
this.logger.error(`Error scheduling task, error: ${e}`);
this.logger.debug(`Error scheduling task, error: ${e}`);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class DefaultTransformManager implements TransformManager {
async install(slo: SLODefinition): Promise<TransformId> {
const generator = this.generators[slo.indicator.type];
if (!generator) {
this.logger.error(`No transform generator found for indicator type [${slo.indicator.type}]`);
this.logger.debug(`No transform generator found for indicator type [${slo.indicator.type}]`);
throw new Error(`Unsupported indicator type [${slo.indicator.type}]`);
}

Expand Down Expand Up @@ -63,7 +63,7 @@ export class DefaultTransformManager implements TransformManager {
async inspect(slo: SLODefinition): Promise<TransformPutTransformRequest> {
const generator = this.generators[slo.indicator.type];
if (!generator) {
this.logger.error(`No transform generator found for indicator type [${slo.indicator.type}]`);
this.logger.debug(`No transform generator found for indicator type [${slo.indicator.type}]`);
throw new Error(`Unsupported indicator type [${slo.indicator.type}]`);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export function fromRemoteSummaryDocumentToSloDefinition(

if (isLeft(res)) {
const errors = formatErrors(res.left);
logger.error(`Invalid remote stored summary SLO with id [${summaryDoc.slo.id}]`);
logger.error(errors.join('|'));
logger.debug(`Invalid remote stored summary SLO with id [${summaryDoc.slo.id}]`);
logger.debug(errors.join('|'));

return undefined;
}
Expand Down

0 comments on commit 1a4a555

Please sign in to comment.