From 9189d8011ca1dbffcbb91e6268712e1c11c2c890 Mon Sep 17 00:00:00 2001 From: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Date: Wed, 27 Oct 2021 12:22:52 -0400 Subject: [PATCH] [Reporting] Suppress debug logs in the mock logger (#116012) (#116380) Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Tim Sullivan --- .../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'));