Skip to content

Commit

Permalink
chore: updated type error
Browse files Browse the repository at this point in the history
  • Loading branch information
abhilash-sivan committed Nov 19, 2024
1 parent 719f4e2 commit 3409200
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions packages/collector/src/logger.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,12 @@ try {
// thread (0).
}

const pino = require('pino');
// @ts-ignore
const pino = require('pino')();
const { logger } = require('@instana/core');
const pinoToAgentStream = require('./agent/loggerToAgentStream');

/** @type {pino.Logger | import('@instana/core/src/core').GenericLogger} */
/** @type {pino | import('@instana/core/src/core').GenericLogger} */
let parentLogger = null;
/** @type {Object.<string, (logger: import('@instana/core/src/core').GenericLogger) => *>} */
const registry = {};
Expand Down Expand Up @@ -108,7 +109,7 @@ exports.getLogger = function getLogger(loggerName, reInitFn) {
};

/**
* @param {import('pino').Logger | *} _logger
* @param {import('pino') | *} _logger
* @returns {boolean}
*/
function isPino(_logger) {
Expand Down

0 comments on commit 3409200

Please sign in to comment.