aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-10-30 04:35:33 +0300
committerGravatar Vitaly Takmazov2021-10-30 04:35:33 +0300
commitc13a2d02b037f7f0a1c0300ecec1b983436127ee (patch)
tree8570ca6e7c757fd0c79f2974abc69427d6da24bd
parentffd6563c7ebdd62902ba2583a2997d3f15271046 (diff)
Additional logging for recommendations
-rw-r--r--src/main/java/com/juick/service/MessagesServiceImpl.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/com/juick/service/MessagesServiceImpl.java b/src/main/java/com/juick/service/MessagesServiceImpl.java
index 3bb58a17..3e197bf1 100644
--- a/src/main/java/com/juick/service/MessagesServiceImpl.java
+++ b/src/main/java/com/juick/service/MessagesServiceImpl.java
@@ -248,6 +248,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ
@Transactional
@Override
public RecommendStatus recommendMessage(final int mid, final int vuid, final String userUri) {
+ logger.info("Message {} recommended by {} ({})", mid, vuid, userUri);
SqlParameterSource sqlParameterSource = new MapSqlParameterSource().addValue("uid", vuid)
.addValue("uri", userUri).addValue("like_id", Reaction.LIKE).addValue("mid", mid);
int wasDeleted = getNamedParameterJdbcTemplate().update(