more debug
This commit is contained in:
parent
697dd58b46
commit
3cbe6e0b5c
@ -134,7 +134,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mongodb</groupId>
|
<groupId>org.mongodb</groupId>
|
||||||
<artifactId>mongodb-driver-async</artifactId>
|
<artifactId>mongodb-driver-async</artifactId>
|
||||||
<version>3.2.2</version>
|
<version>3.12.11</version>
|
||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
@ -142,7 +142,7 @@
|
|||||||
<artifactId>mongo-jackson-codec</artifactId>
|
<artifactId>mongo-jackson-codec</artifactId>
|
||||||
<version>3.2.0__0.4</version>
|
<version>3.2.0__0.4</version>
|
||||||
<scope>system</scope>
|
<scope>system</scope>
|
||||||
<systemPath>C:\Users\revol\Desktop\Hydrogen/lib/mongo-jackson-mapper-1.4.2.jar</systemPath>
|
<systemPath>E:\SSD\GitHub\APIv3/lib/mongo-jackson-mapper-1.4.2.jar</systemPath>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>de.undercouch</groupId>
|
<groupId>de.undercouch</groupId>
|
||||||
|
2
pom.xml
2
pom.xml
@ -143,7 +143,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.mongodb</groupId>
|
<groupId>org.mongodb</groupId>
|
||||||
<artifactId>mongodb-driver-async</artifactId>
|
<artifactId>mongodb-driver-async</artifactId>
|
||||||
<version>3.2.2</version>
|
<version>3.12.11</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>fr.javatic.mongo</groupId>
|
<groupId>fr.javatic.mongo</groupId>
|
||||||
|
@ -48,6 +48,7 @@ public final class POSTServersHeartbeat implements Handler<RoutingContext> {
|
|||||||
|
|
||||||
Server actorServer = Server.findById(actor.getName());
|
Server actorServer = Server.findById(actor.getName());
|
||||||
JsonObject requestBody = ctx.getBodyAsJson();
|
JsonObject requestBody = ctx.getBodyAsJson();
|
||||||
|
System.out.println("body: " + requestBody);
|
||||||
JsonObject players = requestBody.getJsonObject("players");
|
JsonObject players = requestBody.getJsonObject("players");
|
||||||
Map<UUID, String> playerNames = extractPlayerNames(players);
|
Map<UUID, String> playerNames = extractPlayerNames(players);
|
||||||
Map<UUID, String> playerIps = extractPlayerIps(players);
|
Map<UUID, String> playerIps = extractPlayerIps(players);
|
||||||
@ -67,6 +68,7 @@ public final class POSTServersHeartbeat implements Handler<RoutingContext> {
|
|||||||
"events", result.result().result(3)
|
"events", result.result().result(3)
|
||||||
));
|
));
|
||||||
} else {
|
} else {
|
||||||
|
result.cause().printStackTrace();
|
||||||
ErrorUtils.respondInternalError(ctx, result.cause());
|
ErrorUtils.respondInternalError(ctx, result.cause());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user