You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Mark Struberg (Jira)" <ji...@apache.org> on 2025/07/30 07:15:00 UTC

[jira] [Resolved] (DELTASPIKE-1482) Don't override the log level on test finish

     [ https://issues.apache.org/jira/browse/DELTASPIKE-1482?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Struberg resolved DELTASPIKE-1482.
---------------------------------------
    Fix Version/s: 2.0.1
       Resolution: Fixed

Thank you Craig! 
I've removed the two setLevel calls and changed the logging in the testFailure() method to Level.SEVERE. I hope that works for you.

> Don't override the log level on test finish
> -------------------------------------------
>
>                 Key: DELTASPIKE-1482
>                 URL: https://issues.apache.org/jira/browse/DELTASPIKE-1482
>             Project: DeltaSpike
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: TestControl
>            Reporter: Craig McIlwee
>            Assignee: Mark Struberg
>            Priority: Major
>             Fix For: 2.0.1
>
>
> DELTASPIKE-1133 has a fix for logging to allow users to suppress log lines like this:
> {noformat}
> Jul 29, 2025 2:16:14 PM org.apache.deltaspike.testcontrol.api.junit.CdiTestSuiteRunner$LogRunListener testStarted
> INFO: [run] org.example.DatabaseTest#testSomething
> {noformat}
> That is only half of the problem though.  Commit ecf4578 only touched the listener's {{testStarted}} method and failed to address the {{testFinished}} method immediately below, so we still end up with this unwanted logging:
> {noformat}
> Jul 29, 2025 2:16:14 PM org.apache.deltaspike.testcontrol.api.junit.CdiTestSuiteRunner$LogRunListener testFinished
> INFO: [finished] org.example.DatabaseTest#testSomething
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)