From 51b5bf006fc2405aa19ad32a59a0a8d085b709fd Mon Sep 17 00:00:00 2001 From: Tim Sullivan Date: Tue, 26 Oct 2021 13:29:54 -0700 Subject: [PATCH] [Reporting] Suppress debug logs in the mock logger (#116012) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> --- .../reporting/server/test_helpers/create_mock_levellogger.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts b/x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts index cf0081431f7c7..1a8bfe7b70208 100644 --- a/x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts +++ b/x-pack/plugins/reporting/server/test_helpers/create_mock_levellogger.ts @@ -17,7 +17,7 @@ export function createMockLevelLogger() { const logger = new LevelLogger(loggingSystemMock.create()) as jest.Mocked; logger.clone.mockImplementation(createMockLevelLogger); - logger.debug.mockImplementation(consoleLogger('debug')); + // logger.debug.mockImplementation(consoleLogger('debug')); // uncomment this to see debug logs in jest tests logger.info.mockImplementation(consoleLogger('info')); logger.warn.mockImplementation(consoleLogger('warn')); logger.warning = jest.fn().mockImplementation(consoleLogger('warn'));