Skip to content

Commit b181fb6

Browse files
authored
chore(tools): add missing logger initialization (renovatebot#41895)
Also missed from 6432d21.
1 parent cb30c2f commit b181fb6

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tools/check-fenced-code.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import MarkdownIt from 'markdown-it';
99
import type Token from 'markdown-it/lib/token.mjs';
1010
import { migrateConfig } from '../lib/config/migration.ts';
1111
import type { RenovateConfig } from '../lib/config/types.ts';
12+
import { init } from '../lib/logger/index.ts';
13+
14+
await init();
1215

1316
const addFormats = _addFormats as unknown as typeof _addFormats.default;
1417

tools/generate-schema.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
import { ERROR } from 'bunyan';
2-
import { getProblems, logger } from '../lib/logger/index.ts';
2+
import { getProblems, init, logger } from '../lib/logger/index.ts';
33
import { generateSchema } from './docs/schema.ts';
44

5+
await init();
6+
57
process.on('unhandledRejection', (err) => {
68
// Will print "unhandledRejection err is not defined"
79
logger.error({ err }, 'unhandledRejection');

0 commit comments

Comments
 (0)