-
Notifications
You must be signed in to change notification settings - Fork 8.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restores task for downloading Chromium builds (#71749)
This was removed in #69165 without realizing it was used by the packer cache. I renamed it to be more inline with what it actually does. Signed-off-by: Tyler Smalley <tyler.smalley@elastic.co>
- Loading branch information
Tyler Smalley
authored
Jul 15, 2020
1 parent
8bcecc0
commit f0b4986
Showing
3 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
/* | ||
* Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one | ||
* or more contributor license agreements. Licensed under the Elastic License; | ||
* you may not use this file except in compliance with the Elastic License. | ||
*/ | ||
|
||
import { LevelLogger } from '../plugins/reporting/server/lib'; | ||
import { ensureBrowserDownloaded } from '../plugins/reporting/server/browsers/download'; | ||
|
||
export const downloadChromium = async () => { | ||
// eslint-disable-next-line no-console | ||
const consoleLogger = (tag: string) => (message: unknown) => console.log(tag, message); | ||
const innerLogger = { | ||
get: () => innerLogger, | ||
debug: consoleLogger('debug'), | ||
info: consoleLogger('info'), | ||
warn: consoleLogger('warn'), | ||
trace: consoleLogger('trace'), | ||
error: consoleLogger('error'), | ||
fatal: consoleLogger('fatal'), | ||
log: consoleLogger('log'), | ||
}; | ||
|
||
const levelLogger = new LevelLogger(innerLogger); | ||
await ensureBrowserDownloaded(levelLogger); | ||
}; |