Skip to content

Include TestContext in log message when starting a new transaction in TransactionalTestExecutionListener [SPR-11323] #15947

Closed

Description

@spring-projects-issues

Sam Brannen opened SPR-11323 and commented

Status Quo

TransactionalTestExecutionListener.endTransaction() includes the TestContext in trace logging output; however, TransactionalTestExecutionListener.startNewTransaction() currently does not include it in its info logging output, thus making it more difficult to debug.

Deliverables

  1. Ensure that startNewTransaction() also includes the current TestContext in logging output.

Affects: 3.0 GA

Issue Links:

Referenced from: commits 6e30851

Activity

  1. spring-projects-issues commented on Jan 17, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Resolving this issue will make it easier to analyze issues such as those described in #10800.

  2. spring-projects-issues commented on Jan 17, 2014

    @spring-projects-issues
    CollaboratorAuthor

    Sam Brannen commented

    Completed as described in the comments for GitHub commit 6e30851:

    *Improve logging in TransactionalTEL*
    
    This commit makes the logging in TransactionalTestExecutionListener
    consistent for both starting and ending transactions. Specifically,
    the current TestContext is now included in the informational log
    statement when starting a new transaction.
    
  3. added
    in: test
    type: enhancement
    on Jan 11, 2019
  4. added this to the 4.0.1 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: testtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions