Skip to content

Commit

Permalink
Demote a couple of error logs to warn
Browse files Browse the repository at this point in the history
  • Loading branch information
machadoum committed Oct 29, 2024
1 parent 3c7268d commit 5b8cef6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions x-pack/plugins/entity_manager/server/lib/entity_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,7 @@ export class EntityClient {
});

if (!definition) {
const message = `Unable to find entity definition [${id}]`;
this.options.logger.error(message);
throw new EntityDefinitionNotFound(message);
throw new EntityDefinitionNotFound(`Unable to find entity definition [${id}]`);
}

this.options.logger.info(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ export class EntityStoreDataClient {
deleteData,
});
} catch (e) {
logger.error(`Error deleting entity definition for ${entityType}: ${e.message}`);
logger.warn(`Error deleting entity definition for ${entityType}: ${e.message}`);
}
await deleteEntityIndexComponentTemplate({
unitedDefinition,
Expand Down

0 comments on commit 5b8cef6

Please sign in to comment.