[CST-6265] Fixed message formatting

fix:
	- message formatting for logInfo was done twice
feat:
	- message inside logWarn was not formatted when using handler
This commit is contained in:
Vincenzo Mecca
2022-09-08 18:45:11 +02:00
parent 3884007521
commit 33e6339900
2 changed files with 20 additions and 10 deletions

View File

@@ -189,8 +189,7 @@ public class Curation extends DSpaceRunnable<CurationScriptConfiguration> {
* @throws FileNotFoundException If file of command line variable -r reporter is not found
*/
private Curator initCurator() throws FileNotFoundException {
Curator curator = new Curator();
curator.setLogHandler(handler);
Curator curator = new Curator(handler);
OutputStream reporterStream;
if (null == this.reporter) {
reporterStream = new NullOutputStream();