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.

Problem with error objects in meta (regression v2.3.0 -> v2.3.1)

See original GitHub issue

Hi,

we see a problem with winston@2.3.1. Here is the gist reproducing it: https://gist.github.com/OrKoN/9c5b212058563043a94fa144d460d1d4

When run with winston 2.3.1, it outputs:

{"error":{},"@timestamp":"2017-04-12T07:19:26.456Z","level":"info","message":"test error in the key"}

When run with winston 2.3.0, it outputs:

{"error":{"message":"test","stack":"Error: test\n    at Object.<anonymous> (/Users/rudenol/winston-test/index.js:29:10)\n    at Module._compile (module.js:570:32)\n    at Object.Module._extensions..js (module.js:579:10)\n    at Module.load (module.js:487:32)\n    at tryModuleLoad (module.js:446:12)\n    at Function.Module._load (module.js:438:3)\n    at Module.runMain (module.js:604:10)\n    at run (bootstrap_node.js:394:7)\n    at startup (bootstrap_node.js:149:9)\n    at bootstrap_node.js:509:3"},"@timestamp":"2017-04-12T07:20:52.922Z","level":"info","message":"test error in the key"}

The latter one is the expected behavior in my opinion. I tried to trace it down and it seems cycle.decycle removes the error object from the meta.

Any idea why this happening?

Also if we use the normal Consol transport, then the error is empty in both 2.3.0 and 2.3.1. My node version is v6.9.4.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:8
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

3reactions
gunarcommented, Oct 25, 2017

Affects v2.4.0 as well

1reaction
indexzerocommented, Apr 19, 2018

#1188 should fix this. A maintenance release will be made tomorrow.

Read more comments on GitHub >

github_iconTop Results From Across the Web

metafor: Meta-Analysis Package for R
An introduction to the package can be found in Viecht- bauer (2010) <doi:10.18637/jss.v036.i03>. License GPL (>=2). ByteCompile TRUE. Encoding ...
Read more >
How to Perform a Meta-Regression | Columbia Public Health
This summary focuses on methods applicable to meta-regression of absolute and relative measures of association derived from 2×2 tables (risk ...
Read more >
Differential Feature Abundance Meta-Analysis | Academic
In this post, I provide an example of how one can conduct a differential feature abundance meta-analysis. I use the curatedMetagenomicData ...
Read more >
The trim-and-fill method for publication bias - NCBI - NIH
Publication bias is a type of systematic error when synthesizing evidence that cannot represent the underlying truth.
Read more >
Chapter 8 Meta-Regression | Doing Meta-Analysis in R
The same terms can also be found in the equation for the random-effects-model (Chapter 4.1.2), and signify two types of independent errors.
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