Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 6ff3d88

Browse files
author
Michal Vlasák
committed
💚 Fix build
1 parent ffbb712 commit 6ff3d88

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/sentry.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ export const extendSentry = (logger: Cosmas, options: { sentry: string | true; s
2929
sentry.init({ dsn: options.sentry });
3030
}
3131

32-
const originalWrite = logger[pino.symbols.streamSym].write;
32+
const originalWrite = (logger as any)[pino.symbols.streamSym].write;
3333
// unfortunately, this is the only place in pino, we can hook onto, where we can be sure all
3434
// the hooks, formatters and serializers are already applied
35-
logger[pino.symbols.streamSym].write = function (s: string) {
35+
(logger as any)[pino.symbols.streamSym].write = function (s: string) {
3636
originalWrite.call(this, s);
3737
const obj = JSON.parse(s);
3838
if (obj.level < (options.sentryLevel || levels.warn)) return;

0 commit comments

Comments
 (0)