aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick')
-rw-r--r--src/main/java/com/juick/TopManager.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/com/juick/TopManager.java b/src/main/java/com/juick/TopManager.java
index c58af428..f910c325 100644
--- a/src/main/java/com/juick/TopManager.java
+++ b/src/main/java/com/juick/TopManager.java
@@ -17,6 +17,7 @@
package com.juick;
+import com.juick.model.CommandResult;
import com.juick.model.Message;
import com.juick.model.Tag;
import com.juick.model.User;
@@ -45,8 +46,8 @@ public class TopManager {
Message jmsg = messagesService.getMessage(m).orElseThrow(IllegalStateException::new);
List<String> tags = jmsg.getTags().stream().map(Tag::getName).map(String::toLowerCase).collect(Collectors.toList());
if (!tags.contains("juick")) {
- logger.info("added {} to popular", m);
- commandsManager.commandRecommend(serviceUser, null, String.valueOf(m));
+ CommandResult result = commandsManager.commandRecommend(serviceUser, null, String.valueOf(m));
+ logger.debug("Popular message {}: {}", m, result.getText());
}
});
}