mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 17:59:23 -04:00
[Screenshotting] Fix typo in warning logs regarding chromium's sandbox (#131584)
* [Screenshotting] fix typo and prevent linebreak in OS * remove unnecessary messaging Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
190ed558fa
commit
58f480b909
2 changed files with 2 additions and 6 deletions
|
@ -114,10 +114,6 @@ export class HeadlessChromiumDriverFactory {
|
|||
const dataDir = getDataPath();
|
||||
fs.mkdirSync(dataDir, { recursive: true });
|
||||
this.userDataDir = fs.mkdtempSync(path.join(dataDir, 'chromium-'));
|
||||
|
||||
if (this.config.browser.chromium.disableSandbox) {
|
||||
logger.warn(`Enabling the Chromium sandbox provides an additional layer of protection.`);
|
||||
}
|
||||
}
|
||||
|
||||
private getChromiumArgs() {
|
||||
|
|
|
@ -24,13 +24,13 @@ export async function createConfig(parentLogger: Logger, config: ConfigType) {
|
|||
|
||||
// disableSandbox was not set by user, apply default for OS
|
||||
const { os, disableSandbox } = await getDefaultChromiumSandboxDisabled();
|
||||
const osName = [os.os, os.dist, os.release].filter(Boolean).map(upperFirst).join(' ');
|
||||
const osName = [os.os, os.dist, os.release].filter(Boolean).map(upperFirst).join(' ').trim();
|
||||
|
||||
logger.debug(`Running on OS: '${osName}'`);
|
||||
|
||||
if (disableSandbox === true) {
|
||||
logger.warn(
|
||||
`Chromium sandbox provides an additional layer of protection, but is not supported for ${osName} OS. Automatically setting 'xpack.screenshotting.capture.browser.chromium.disableSandbox: true'.`
|
||||
`Chromium sandbox provides an additional layer of protection, but is not supported for ${osName} OS. Automatically setting 'xpack.screenshotting.browser.chromium.disableSandbox: true'.`
|
||||
);
|
||||
} else {
|
||||
logger.info(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue