diff --git a/packages/core/http/core-http-router-server-internal/src/router.ts b/packages/core/http/core-http-router-server-internal/src/router.ts index 5177464796291..5f7d970bc6bb6 100644 --- a/packages/core/http/core-http-router-server-internal/src/router.ts +++ b/packages/core/http/core-http-router-server-internal/src/router.ts @@ -200,7 +200,7 @@ export class Router { ); const [message] = loggingSystemMock.collect(logger).error[0]; - expect(message).toEqual('500 Server Error - /'); + expect(message).toEqual('500 Server Error'); }); it('captures the error if handler throws', async () => { @@ -614,7 +614,7 @@ describe('Handler', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "500 Server Error - /", + "500 Server Error", Object { "http": Object { "response": Object { @@ -643,7 +643,7 @@ describe('Handler', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "500 Server Error - /", + "500 Server Error", Object { "http": Object { "response": Object { @@ -687,7 +687,7 @@ describe('Handler', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "400 Bad Request - /", + "400 Bad Request", Object { "http": Object { "response": Object { @@ -1171,7 +1171,7 @@ describe('Response factory', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "500 Server Error - /", + "500 Server Error", Object { "http": Object { "response": Object { @@ -1584,7 +1584,7 @@ describe('Response factory', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "500 Server Error - /", + "500 Server Error", Object { "http": Object { "response": Object { @@ -1660,7 +1660,7 @@ describe('Response factory', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "500 Server Error - /", + "500 Server Error", Object { "http": Object { "response": Object { @@ -1807,7 +1807,7 @@ describe('Response factory', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "500 Server Error - /", + "500 Server Error", Object { "http": Object { "response": Object { @@ -1840,7 +1840,7 @@ describe('Response factory', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "500 Server Error - /", + "500 Server Error", Object { "http": Object { "response": Object { @@ -1872,7 +1872,7 @@ describe('Response factory', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "500 Server Error - /", + "500 Server Error", Object { "http": Object { "response": Object { @@ -1904,7 +1904,7 @@ describe('Response factory', () => { expect(loggingSystemMock.collect(logger).error).toMatchInlineSnapshot(` Array [ Array [ - "500 Server Error - /", + "500 Server Error", Object { "http": Object { "response": Object { diff --git a/x-pack/plugins/observability/server/services/slo/slo_installer.ts b/x-pack/plugins/observability/server/services/slo/slo_installer.ts index d6e8b8295348f..44c2a7752e315 100644 --- a/x-pack/plugins/observability/server/services/slo/slo_installer.ts +++ b/x-pack/plugins/observability/server/services/slo/slo_installer.ts @@ -34,9 +34,7 @@ export class DefaultSLOInstaller implements SLOInstaller { await this.sloResourceInstaller.ensureCommonResourcesInstalled(); await this.sloSummaryInstaller.installAndStart(); } catch (error) { - this.logger.error('Failed to install SLO common resources and summary transforms', { - error, - }); + this.logger.error('Failed to install SLO common resources and summary transforms'); } finally { this.isInstalling = false; clearTimeout(installTimeout);