Skip to content
Snippets Groups Projects
Commit e2d08482 authored by OZGCloud's avatar OZGCloud
Browse files

set logging of LockService to DEBUG

parent 69b914bf
No related branches found
No related tags found
No related merge requests found
......@@ -26,10 +26,11 @@ package de.ozgcloud.user.common.lock;
import java.time.Instant;
import java.time.temporal.ChronoUnit;
import de.ozgcloud.common.logging.OzgCloudLogging;
import de.ozgcloud.user.common.errorhandling.LockCreationException;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import de.ozgcloud.common.logging.OzgCloudLogging;
import de.ozgcloud.user.common.errorhandling.LockCreationException;
import lombok.extern.log4j.Log4j2;
@Log4j2
......@@ -57,12 +58,12 @@ public class LockService {
public void unlock() {
var count = repository.deleteAll();
LOG.info("%s Locks deleted".formatted(count));
LOG.debug("%s Locks deleted".formatted(count));
}
public void lock(Instant timestamp) {
repository.persist(Lock.builder().timestamp(timestamp.toEpochMilli()).build());
LOG.info("Lock created");
LOG.debug("Lock created");
}
Lock getByTimestamp(Instant timestamp) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment