question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

winston.handleExceptions submits 'false' to papertrail.

See original GitHub issue

Hi, I’m trying to use winston-papertrail to log nodejs/express unhandled exceptions but they show up as “false” in papertrail. Code snippet:

var winston = require('winston');
winston.handleExceptions(
  new winston.transports.Papertrail({
        host: 'xxx',
        port: xxx,
        hostname: 'xxx',
        inlineMeta: true
    })            
);

Then I throw an exception without catching it, like this:

throw Error('boo');

After spending some time looking into it I could find out that it looks like “level” is being passed as undefined into:

Papertrail.prototype.sendMessage = function (hostname, program, level, message) {

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
troycommented, Aug 24, 2016

This is live on NPM in version 1.0.3.

0reactions
troycommented, Apr 29, 2016

If you’re reading this message, we’d love if you can pull the current master of winston-papertrail and run it. We’ll wait at least 2 weeks to see whether any issues come up from wider use of this and one other change. If you encounter problems with master which don’t occur in the current release, please open a new GitHub Issue with the transcript and reference #34.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Node process still exits even though winston logger ...
Here is my winston logger config. I have exitOnError set to false but the node process exits on error anyways. Are there any...
Read more >
winstonjs/winston: A logger for just about everything. - GitHub
When working with custom logger instances, you can pass in separate transports to the exceptionHandlers property or set handleExceptions on any transport.
Read more >
winston-papertrail-fix - npm Package Health Analysis - Snyk
Learn more about winston-papertrail-fix: package health score, popularity, ... Tell this Transport to handle exceptions, defaults to false.
Read more >
winston - npm
A multi-transport async logging library for Node.js. Latest version: 3.8.2, last published: 4 months ago. Start using winston in your ...
Read more >
Troubleshooting reachability - Papertrail
Message arrived but was attributed to incorrect system ... Less common setup methods below the search area, click My syslog daemon only sends...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found