grails-plugins / grails-rxjava

A plugin that integrates Grails with RxJava
Apache License 2.0
11 stars 10 forks source link

RxResultSubscriber log noise: Broken pipe #14

Open alfanatico opened 5 years ago

alfanatico commented 5 years ago

RxResultSubscriber is logging an error at line 275 : log.error("Async Dispatch Error: ${e.message}", e).

When the user refreshes the browser, we see the following error with a large stack-trace: 2019-01-29 18:53:56.423 ERROR 6174 --- [ http-nio-8080-exec-4] o.g.plugins.rx.web.RxResultSubscriber : Async Dispatch Error: Broken pipe

However in line 278 it is using a debug level: log.debug("Async timeout occurred"). In both cases it seems that it is recovering from the error, and executing two lines of code:

asyncContext.request.removeAttribute(WebAsyncUtils.WEB_ASYNC_MANAGER_ATTRIBUTE) asyncContext.complete()

It seems that the system is recovering from above error conditions (in our use case we don't lose any event to the client, perhaps because the communication is being retried or established using a new connection). We would like to change the logging level to debug for both cases, just to avoid the log noise.