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.

Failed requests are logged twice when DEBUG level is enabled

See original GitHub issue

I think there is a bug on ResponseProcessor in Gatling 2.2. In previous version (2.1.7), in AsyncHandlerActor, the implementation is: if (status == KO) { logger.warn(s"Request '$fullRequestName' failed: ${errorMessage.getOrElse("")}") if (!logger.underlying.isTraceEnabled) logger.debug(dump) } logger.trace(dump)

It’s ok: log error when DEBUG is enabled and all requests when TRACE is enabled.

But in ResponseProcessor, used in 2.2.3, the implementation is: if (status == KO) { logger.warn(s"Request '$fullRequestName' failed: ${errorMessage.getOrElse("")}") if (!logger.underlying.isTraceEnabled) logger.debug(dump) } logger.debug(dump)

So, when DEBUG is enabled, all requests are logged…

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lguerrincommented, Nov 15, 2016

When you say “We intendedly raised logging level from TRACE to DEBUG.”, it’s about the second logger? In this case, we can no longer get only failed requests?

0reactions
slandellecommented, Dec 29, 2016

@davoustp There’s no plan for new public releases for 2.2.x atm, only if some critical bug fixes get contributed by the community. We’ll have private ones for our FrontLine customers though.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error shows up twice in Cloudwatch Logs · Issue #1183 - GitHub
Looking at the exception handler in app.py lines 1063-1080, the exception is clearly logged twice. Once on line 1065 and again on line...
Read more >
log messages appearing twice with Python Logging
A call to logging.debug() calls logging.basicConfig() if there are no root handlers installed. That was happening for me in a test framework where...
Read more >
Why am I getting request log messages twice? : r/django
When running tests and runserver I am getting request logs twice for any error non-2XX request. Any idea why this is happening?
Read more >
API Appears to Incorrectly Run Twice - PowerShell Universal
Having an issue that I can't seem to figure out. When running a dynamic form, one of my API calls is causing duplicate...
Read more >
Log level settings - IBM
An error can occur when setting a log detail level specification from the administrative console if selections are made from both the Groups...
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