You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'll start by saying that I suspect this bug isn't in pino-caller, but I'm not 100% sure and it's the module that's exhibiting the behaviour so it's a starting point. If it's not here then I apologise.
I've got an application that's using TypeScript and ESM, running on Node 20. For the most part that's all fine, but I've noticed that pino-caller is logging the wrong line numbers.
It appears to not be counting blank lines, but does count lines that are only comments. However, I'm not sure if that's really the case or just coincidence as I've not done much in the way of extensive testing...
Cheers
The text was updated successfully, but these errors were encountered:
I'll start by saying that I suspect this bug isn't in pino-caller, but I'm not 100% sure and it's the module that's exhibiting the behaviour so it's a starting point. If it's not here then I apologise.
I've got an application that's using TypeScript and ESM, running on Node 20. For the most part that's all fine, but I've noticed that pino-caller is logging the wrong line numbers.
Minimal reproduction is as follows:
package.json:
tsconfig.json:
index.ts:
Note that the
logger.info
call is on line 7, but the log message that it outputs is:Claiming that it was line 5 instead.
It appears to not be counting blank lines, but does count lines that are only comments. However, I'm not sure if that's really the case or just coincidence as I've not done much in the way of extensive testing...
Cheers
The text was updated successfully, but these errors were encountered: