Closed as not planned
Description
We've recently upgraded from Spring Boot 2.7.x to 3.1.x. Our existing Spring Integration flows suddenly start spamming the logs with:
xxxx-xx-xxTxx:xx:xx.xxx+xx:xx WARN xxxxx --- [ Thread-x] o.s.integration.filter.MessageFilter : The message [GenericMessage [...] has been rejected in filter: bean '...' for component '...'
Which is easily traced back to this snippet of code:
Our flow is simple, it has this in the middle of it:
# SomeConfiguration.kt
@Bean
fun someFlow() =
from(...)
...
.filter(PayloadTypeSelector(...))
.handle(...)
.get()
This code hasn't changed and produced no warnings in Spring Boot 2.7.x.
Are we doing something wrong and/or have we missed something in the docs that says we need to do something special with filtered messages? Or is this just a bug of over-zealous logging?