Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Callback not being fired #83

Open
ffxsam opened this issue Oct 24, 2018 · 0 comments
Open

Callback not being fired #83

ffxsam opened this issue Oct 24, 2018 · 0 comments

Comments

@ffxsam
Copy link
Collaborator

ffxsam commented Oct 24, 2018

logger.log(
  'info',
  'Callback test',
  {
    reqid: 'aaaaaa-bbbbb-23321',
    details: {
      name: 'test',
    },
  },
  () => {
    console.log('callback fired');
  }
);

When I make this call, the callback function is not getting fired for some reason. I looked at the winston-papertrail code, and I can't find anything wrong with it. It passes the callback to stream.write() which looks good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant