diff --git a/core/src/main/java/org/opencdmp/deposit/zenodorepository/service/storage/FileStorageServiceImpl.java b/core/src/main/java/org/opencdmp/deposit/zenodorepository/service/storage/FileStorageServiceImpl.java index 1cd1b33..b2216a7 100644 --- a/core/src/main/java/org/opencdmp/deposit/zenodorepository/service/storage/FileStorageServiceImpl.java +++ b/core/src/main/java/org/opencdmp/deposit/zenodorepository/service/storage/FileStorageServiceImpl.java @@ -1,5 +1,6 @@ package org.opencdmp.deposit.zenodorepository.service.storage; +import gr.cite.tools.logging.LoggerService; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -16,7 +17,7 @@ import java.util.UUID; @Service public class FileStorageServiceImpl implements FileStorageService { - private final static Logger logger = LoggerFactory.getLogger(FileStorageServiceImpl.class); + private static final LoggerService logger = new LoggerService(LoggerFactory.getLogger(FileStorageServiceImpl.class)); private final FileStorageServiceProperties properties; diff --git a/web/src/main/java/org/opencdmp/deposit/controller/DepositController.java b/web/src/main/java/org/opencdmp/deposit/controller/DepositController.java index bb1b549..8a0e490 100644 --- a/web/src/main/java/org/opencdmp/deposit/controller/DepositController.java +++ b/web/src/main/java/org/opencdmp/deposit/controller/DepositController.java @@ -30,7 +30,7 @@ public class DepositController implements org.opencdmp.depositbase.repository.De } public String deposit(@RequestBody DmpModel dmpModel, @RequestParam("authToken")String authToken) throws Exception { - logger.debug(new MapLogEntry("deposit" + DmpModel.class.getSimpleName()).And("dmpModel", dmpModel)); + logger.debug(new MapLogEntry("deposit " + DmpModel.class.getSimpleName()).And("dmpModel", dmpModel)); String doiId = depositClient.deposit(dmpModel, authToken); @@ -41,7 +41,7 @@ public class DepositController implements org.opencdmp.depositbase.repository.De } public String authenticate(@RequestParam("authToken") String code) { - logger.debug(new MapLogEntry("authenticate" + DmpModel.class.getSimpleName())); + logger.debug(new MapLogEntry("authenticate " + DmpModel.class.getSimpleName())); String token = depositClient.authenticate(code); @@ -51,7 +51,7 @@ public class DepositController implements org.opencdmp.depositbase.repository.De } public DepositConfiguration getConfiguration() { - logger.debug(new MapLogEntry("getConfiguration" + DmpModel.class.getSimpleName())); + logger.debug(new MapLogEntry("getConfiguration " + DmpModel.class.getSimpleName())); DepositConfiguration configuration = depositClient.getConfiguration(); @@ -61,7 +61,7 @@ public class DepositController implements org.opencdmp.depositbase.repository.De } public String getLogo() { - logger.debug(new MapLogEntry("getLogo" + DmpModel.class.getSimpleName())); + logger.debug(new MapLogEntry("getLogo " + DmpModel.class.getSimpleName())); String logo = depositClient.getLogo();