Skip to content

Commit

Permalink
Log deprecation logs with warn not info
Browse files Browse the repository at this point in the history
  • Loading branch information
rudolf committed Dec 3, 2021
1 parent d9f0d61 commit 4a5efc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/server/elasticsearch/client/configure_client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ const addLogging = ({ client, type, logger }: { client: Client; type: string; lo
const stackTrace = new Error().stack?.split('\n').slice(5).join('\n');

if (requestOrigin === 'kibana') {
deprecationLogger.info(
deprecationLogger.warn(
`ES DEPRECATION: ${event.warnings}\nOrigin:${requestOrigin}\nStack trace:\n${stackTrace}\nQuery:\n${queryMessage}`
);
} else {
Expand Down

0 comments on commit 4a5efc1

Please sign in to comment.