From 338fc691632d58ae8e3c7cf11912a2259564eb68 Mon Sep 17 00:00:00 2001 From: spalger Date: Mon, 3 Feb 2020 20:20:58 -0700 Subject: [PATCH] upgrade e/good again to get function reporters --- package.json | 2 +- src/legacy/server/logging/configuration.js | 6 +++--- yarn.lock | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 46fa837147996..bd0efaa5cd39a 100644 --- a/package.json +++ b/package.json @@ -122,7 +122,7 @@ "@elastic/ems-client": "7.6.0", "@elastic/eui": "18.3.0", "@elastic/filesaver": "1.1.2", - "@elastic/good": "8.1.1-kibana6", + "@elastic/good": "8.1.1-kibana7", "@elastic/numeral": "2.3.3", "@elastic/request-crypto": "^1.0.2", "@elastic/ui-ace": "0.2.3", diff --git a/src/legacy/server/logging/configuration.js b/src/legacy/server/logging/configuration.js index b74756917a3e8..7d9f71a782e63 100644 --- a/src/legacy/server/logging/configuration.js +++ b/src/legacy/server/logging/configuration.js @@ -47,7 +47,7 @@ export default function loggingConfiguration(config) { }); } - const loggerStream = getLoggerStream({ + const loggerStreamOptions = { config: { json: config.get('logging.json'), dest: config.get('logging.dest'), @@ -70,7 +70,7 @@ export default function loggingConfiguration(config) { }, {} ), - }); + }; const options = { ops: { @@ -80,7 +80,7 @@ export default function loggingConfiguration(config) { request: ['headers', 'payload'], }, reporters: { - logReporter: loggerStream, + logReporter: () => getLoggerStream(loggerStreamOptions), }, }; return options; diff --git a/yarn.lock b/yarn.lock index 985141f42589a..443d87c45289b 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1997,10 +1997,10 @@ async-retry "^1.2.3" strip-ansi "^5.2.0" -"@elastic/good@8.1.1-kibana6": - version "8.1.1-kibana6" - resolved "https://registry.yarnpkg.com/@elastic/good/-/good-8.1.1-kibana6.tgz#39cafef0785991e2a1dae726c5edc29f5008126b" - integrity sha512-0UIfFHrO64G29IGx0FeLR5Cn7D8tr75YYE8Tn60wP3UipGaYKxSP5GUT/PLTHZU4t+yqffM4I+HilAaLnV+gmg== +"@elastic/good@8.1.1-kibana7": + version "8.1.1-kibana7" + resolved "https://registry.yarnpkg.com/@elastic/good/-/good-8.1.1-kibana7.tgz#450bcb276e4613ed9a0c532cbff61fd93b26440c" + integrity sha512-9R86dfGOjhumUOIbMafFciQRqoiBjnGtMJ1hWkH+TO05VmlL94vuw2rfPLzbI9dIyOvIZB/LLLkqEBgp8AZDtg== dependencies: hoek "5.x.x" joi "13.x.x"