Closed Farley-Chen closed 1 year ago
This issue is stale because it has been open for too long without any activity. Due to the moving nature of jhipster generated application, bugs can become invalid. If this issue still applies please comment otherwise it will be closed in 7 days
@Farley-Chen can you contribute with a PR?
@mshima OK, I have contribute the PR
I think I'm not familiar with Javascript so I didn't contribute before.
So just now I have found the right place and correct it with the PR.
Overview of the issue
it's a easy bug.
The LoggingAspect generated code like this.
The second
logger.error()
may not work rightly with logback, because the cause is a exception.maybe like this
Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
Maybe use
String.valueof()
to wrap the cause.Generated code maybe like this.
I still don't know why IDE say that "Unnecessary 'String.valueOf()' call". It's worked in my project with jdk17.
JHipster Version(s)
version 7.9.3
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System