license-maven-plugin
license-maven-plugin copied to clipboard
Don't use getLog().isDebugEnabled() to determine the "verbose" flag
The code currently calls getLog().isDebugEnabled()
to set the verbose flag.
In the code, I see patterns like these:
- if (isVerbose()) StringBuilder buffer = ...; log.info(buffer)
- if (isVerbose()) log.info(details)
This feels like a hack to get logging at a level between INFO and DEBUG.
I suggest to get rid of the "verbose" flag and always log at DEBUG level for these.
For the blocks that prepare a complex string, use log.isDebugEnabled() directly.
What would happen with the verbose
Mojo parameter?
What would happen with the
verbose
Mojo parameter?
verbose
Mojo parameter can be deprecated.