mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-04 03:13:49 +00:00
modified logging when receiving a replication operation through HTTP
Change-Id: I246f9e09bb9ba3df52e211bdce4d4a1354a44ba4
This commit is contained in:
1 parent
65313c591d
commit
263a1c8ebc
1 file changed
+1
-1
+1
-1
@@ -138,13 +138,13 @@ public class ReplicationServlet extends AbstractHttpServlet {
|
||||
|
||||
@Override
|
||||
protected void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
||||
logger.info("Received request to apply and replicate an operation from a replica");
|
||||
InputStream is = req.getInputStream();
|
||||
DataInputStream dis = new DataInputStream(is);
|
||||
String replicableIdAsString = dis.readUTF();
|
||||
try {
|
||||
Replicable<?, ?> replicable = replicablesProvider.getReplicable(replicableIdAsString, /* wait */ false);
|
||||
if (replicable != null) {
|
||||
logger.info("Received request to apply and replicate an operation from a replica for replicable "+replicable);
|
||||
applyOperationToReplicable(replicable, is);
|
||||
} else {
|
||||
logger.warning("Received operation for replicable "+replicableIdAsString+
|
||||
|
||||
Reference in new issue
Block a user