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
HTTP: Whole traffic from WebSocket is logged as a DEBUG - can't filter failed messages #4468
Comments
up |
How do you define failed messages with WebSockets? With HTTP, it's pretty straightforward that to the single (request, response) pair model.
|
From my point of view those incoming messages which failed check or exceed timeout should be treat as a "failed" ones. According to docs during matching all non-matching messages will be ignored, so at the end if I will not got message which im expecting using matching API I will reach some timeout |
Exactly, check timeout means no inbound message matched. So what should we log then? Only the outbound message? Or do you expect all unmatched message? |
Outbound message should be good enough. Ofc better to log all non-matching messages but in this case I see more difficult scenario. |
Summing up:
Note: when TRACE is enabled, so is DEBUG too. Agree? |
Bump. Same here |
Correct |
Is this something you're interested in contributing? Or your company willing to sponsor? |
@MSlaski For your purpose you have to define a logger in this way: <logger name="io.gatling.http.action.ws.fsm.WsLogger" level="DEBUG"/> Thus, you will receive only failure message logs, instead of all of these logs from |
Improved as of #4471 |
Unfortunately its not working like that |
@MSlaski Could you please clarify what specifically is not working? Are you still receiving logs for requests that did not fail? |
Sorry, My bad. I thought you provide the same details for this appended as it was described at Gatling's documentation. When I changed it and add WsLogger at the very end it is working fine. |
Hello,
I'm using Gatling 3.9.5 and found that issue reported here: #4439 is still visible. Original ticket was not reopened so I raised another one
During simulation with WebSocket every log related to WebSocket traffic is using DEBUG level. It means even if I try to log to file only failed messages Gatling will store everything. The most annoying issue of that is a log file with a couple of GBs which is harder to store/parse after tests
Is it possible to fix this and use logic similar to HTTP where using DEBUG for logging only failed messages will be logged, and TRACE for everything?
My logback.xml content:
BR
Mateusz
The text was updated successfully, but these errors were encountered: