# Elastic APM hides error message in log

**URL:** <https://discuss.elastic.co/t/elastic-apm-hides-error-message-in-log/199375>\
**Category:** APM\
**Tags:** nodejs\
**Created:** [September 13, 2019, 7:03am UTC](https://discuss.elastic.co/t/elastic-apm-hides-error-message-in-log/199375 "2019-09-13T07:03:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cawoodm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cawoodm/32/14083_2.png) [@cawoodm](https://discuss.elastic.co/u/cawoodm)\
**Post date:** [September 13, 2019, 7:03am UTC](https://discuss.elastic.co/t/elastic-apm-hides-error-message-in-log/199375/1 "2019-09-13T07:03:06Z")

</div>

ELK 7.3.1 - NodeJS v12.2 Windows

Since adding APM to our NodeJS application, when an error (unhandled exception) occurs we don't see in the log what it was. APM apparently suppresses the error message (see below with APM off then on) and says it sent the error to APM. Unfortunately we can't see the error in APM either.

How can we stop APM suppressing the error message in the error log?

![image](https://us1.discourse-cdn.com/elastic/original/3X/c/d/cd0cc4a4221cead96d84167bb263fc86404743c2.png)

---

<div class="post-metadata">

**Author:** ![wa7son](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/wa7son/32/21259_2.png) [@wa7son](https://discuss.elastic.co/u/wa7son)\
**Post date:** [September 13, 2019, 8:58am UTC](https://discuss.elastic.co/t/elastic-apm-hides-error-message-in-log/199375/2 "2019-09-13T08:58:23Z")

</div>

Yeah, I agree this isn't ideal. Wile you can of course go to Elastic APM to view the error, it would be nice if the stack trace was also visible in the logs.

We have an open issue about this which I encourage you to subscribe to:

> <https://github.com/elastic/apm-agent-nodejs/issues/1141>

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 4, 2019, 4:58am UTC](https://discuss.elastic.co/t/elastic-apm-hides-error-message-in-log/199375/3 "2019-10-04T04:58:30Z")

</div>

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.
