Skip to content

Commit

Permalink
fix logger usage for legacy shim removed in 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan committed Jan 24, 2020
1 parent ee5fa28 commit 485cb10
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@
* you may not use this file except in compliance with the Elastic License.
*/

import { PLUGIN_ID, PDF_JOB_TYPE } from '../../../../common/constants';
import {
CreateJobFactory,
ESQueueCreateJobFn,
ServerFacade,
RequestFacade,
ConditionalHeaders,
Logger,
} from '../../../../types';
import { validateUrls } from '../../../../common/validate_urls';
import { LevelLogger } from '../../../../server/lib';
import { cryptoFactory } from '../../../../server/lib/crypto';
import { JobParamsPDF } from '../../types';
// @ts-ignore untyped module
Expand All @@ -29,8 +28,7 @@ interface CreateJobFnOpts {

export const createJobFactory: CreateJobFactory<ESQueueCreateJobFn<
JobParamsPDF
>> = function createJobFactoryFn(server: ServerFacade) {
const logger = LevelLogger.createForServer(server, [PLUGIN_ID, PDF_JOB_TYPE, 'create']);
>> = function createJobFactoryFn(server: ServerFacade, logger: Logger) {
const compatibilityShim = compatibilityShimFactory(server, logger);
const crypto = cryptoFactory(server);

Expand Down

0 comments on commit 485cb10

Please sign in to comment.