Skip to content

Commit

Permalink
Add missing logback libs (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
beverly-hills-money-gangster authored Oct 4, 2024
1 parent 81b0e92 commit 8e0a168
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
10 changes: 10 additions & 0 deletions net-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,16 @@
<version>5.8.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.4.14</version>
</dependency>
<dependency>
<groupId>net.logstash.logback</groupId>
<artifactId>logstash-logback-encoder</artifactId>
<version>7.4</version>
</dependency>
<dependency>
<groupId>org.junit-pioneer</groupId>
<artifactId>junit-pioneer</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
import java.util.ArrayList;
import java.util.List;
import org.apache.commons.lang3.math.NumberUtils;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class BotRunner {

private static final Logger LOG = LoggerFactory.getLogger(BotRunner.class);

public static void main(String[] args) {
if (args.length != 3) {
throw new IllegalArgumentException(
Expand All @@ -15,11 +19,11 @@ public static void main(String[] args) {
+
"For example: java -jar <jar file> 1 localhost 7777");
}
LOG.info("Start running bots");
int botsToRun = NumberUtils.toInt(args[0]);
String host = args[1];
int port = NumberUtils.toInt(args[2]);


List<Thread> threads = new ArrayList<>();
for (int i = 0; i < botsToRun; i++) {
threads.add(new Thread(BotRunnable.builder()
Expand Down

0 comments on commit 8e0a168

Please sign in to comment.