Can't send logs to ReportPortal because com.epam.reportportal.service.LoggingContext.init is not called
RPMiller opened this issue · 5 comments
Not sure if this is the right place for the issue since it could be fixed in a few repos.
agent-java-junit does not set the logging context
The log4j2 appender gets invoked
But then ignores the log because the logging context was never set.
I can send logs when using testNG because then logging context is set from
then
I know almost nothing about this code base, but I'm curious as to why the testNG agent uses Launch and the junit agent uses ReportPortalService.
I'm curious as to why the testNG agent uses Launch and the junit agent uses ReportPortalService.
@RPMiller hi. JUnit agent uses pretty old version of client-java dependency which is basically ReportPortal client.
Other frameworks (including TestNG) use fresh/latest client-java.
The main different between "old" and "new" ReportPortal client is that new version sends requests asynchronously and as the result, doesn't influence your test execution time so much as "old" version does