Skip to content

TransactionalSession produces confusing log statements #7842

Description

@timbussmann

Describe the suggested improvement

With #7675 new info logging was added when the outbox deduplicates a message. However, when using the transactional session, this log warning (e.g. Outbox duplicate detected for message 'f4cbed05-8fe2-47ef-b145-973ab39c900c'. Skipping handler execution) also appears on every single transactional session control message.
In this case, the "deduplication" is expected behavior and there is no handler invocation to be invoked anyway. This log message confuses users that upgrade from NSB 9 to 10 because suddenly they see log messages about deduplications which can't clearly be connected to the transactional session control message.

Describe the suggested solution

  • lower the log level to Debug/Trace to only show up when intentionally trying to trace behavior
  • skip the log for transactional session control messages

Describe alternatives you've considered

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions