Skip to content

Commit 4ef609c

Browse files
committed
fix: add missing logger definition for SLF4J
1 parent a98e1ea commit 4ef609c

File tree

2 files changed

+1
-10
lines changed

2 files changed

+1
-10
lines changed

leader-followers/pom.xml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,6 @@
4747
<artifactId>junit-jupiter-engine</artifactId>
4848
<scope>test</scope>
4949
</dependency>
50-
<dependency>
51-
<groupId>org.projectlombok</groupId>
52-
<artifactId>lombok</artifactId>
53-
<version>1.18.24</version>
54-
<scope>provided</scope>
55-
</dependency>
5650
</dependencies>
5751
<build>
5852
<plugins>

leader-followers/src/main/java/com/iluwatar/leaderfollowers/App.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,9 @@
44
import java.util.concurrent.Executors;
55
import java.util.concurrent.TimeUnit;
66
import lombok.extern.slf4j.Slf4j;
7-
import org.slf4j.Logger;
8-
import org.slf4j.LoggerFactory;
97

108
@Slf4j
119
public class App {
12-
private static final Logger log = LoggerFactory.getLogger(App.class);
1310

1411
public static void main(String[] args) throws InterruptedException {
1512
var taskSet = new TaskSet();
@@ -29,7 +26,7 @@ private static void execute(WorkCenter workCenter, TaskSet taskSet) throws Inter
2926
addTasks(taskSet);
3027
boolean terminated = exec.awaitTermination(2, TimeUnit.SECONDS);
3128
if (!terminated) {
32-
log.warn("Executor did not terminate in the given time.");
29+
LOGGER.warn("Executor did not terminate in the given time.");
3330
}
3431
} finally {
3532
exec.shutdownNow();

0 commit comments

Comments
 (0)