Skip to content

GH-3615: Make log() as non-terminal in DSL #3769

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

Merged
merged 1 commit into from
Apr 7, 2022

Conversation

artembilan
Copy link
Member

Fixes #3615

The log() operator for Java DSL in the end of flow causes a confusion
for its different behavior and, therefore, inconsistency with expectations

  • Populate a bridge() in the end of flow instead of nullChannel when
    the current component is WireTapSpec (relevant to wireTap() and log())
  • Deprecate a logAndReply() operator since its behavior is now included into the log() in the end if flow
  • Fix tests to use just log() in the end from now on
  • Fix dsl.adoc for the new log() behaviour in the end of flow

Fixes spring-projects#3615

The `log()` operator for Java DSL in the end of flow causes a confusion
for its different behavior and, therefore, inconsistency with expectations

* Populate a `bridge()` in the end of flow instead of `nullChannel` when
the current component is `WireTapSpec` (relevant to `wireTap()` and `log()`)
* Deprecate a `logAndReply()` operator since its behavior is now included into the `log()` in the end if flow
* Fix tests to use just `log()` in the end from now on
* Fix `dsl.adoc` for the new `log()` behaviour in the end of flow
@artembilan
Copy link
Member Author

@garyrussell garyrussell merged commit 10ea577 into spring-projects:main Apr 7, 2022
@garyrussell
Copy link
Contributor

I polished the migration guide a little.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

.log() should always behave the same, no matter where it is placed in a flow
2 participants