mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[createToolingLog] update require path for toolingLog (7.x) (elastic/kibana-plugin-helpers#55)
include fallback to utils path for semver compat Original commit: elastic/kibana-plugin-helpers@6c923d1231
This commit is contained in:
parent
d8a5a47ca1
commit
3b039d9485
1 changed files with 4 additions and 1 deletions
|
@ -23,7 +23,10 @@ function resolveKibanaPath(path) {
|
|||
}
|
||||
|
||||
function createToolingLog(level) {
|
||||
return require(resolveKibanaPath('src/utils')).createToolingLog(level);
|
||||
// The tooling log location changed in 6.1.0, see https://github.com/elastic/kibana/pull/14890
|
||||
const utils = require(resolveKibanaPath('src/utils'));
|
||||
if (utils.createToolingLog) return utils.createToolingLog(level);
|
||||
return require(resolveKibanaPath('src/dev')).createToolingLog(level);
|
||||
}
|
||||
|
||||
function readFtrConfigFile(log, path, settingOverrides) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue