diff options
author | Vitaly Takmazov | 2018-01-05 11:53:58 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-01-05 11:53:58 +0300 |
commit | 69464bd4b1ea5973efb0c40686b11872654f6331 (patch) | |
tree | f38029dee7e09c7d202deef6ae6693b1371820d7 | |
parent | 4f2f63dbda970c06e63f444e11e29da483961843 (diff) |
email: fix log format
-rw-r--r-- | juick-api/src/main/java/com/juick/api/controllers/Post.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-api/src/main/java/com/juick/api/controllers/Post.java b/juick-api/src/main/java/com/juick/api/controllers/Post.java index 032b549b..92daf2e7 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/Post.java +++ b/juick-api/src/main/java/com/juick/api/controllers/Post.java @@ -255,7 +255,7 @@ public class Post { Scanner inReplyToScanner = new Scanner(inReplyToHeaders[0].trim()).useDelimiter("\\.|@|<"); int mid = Integer.parseInt(inReplyToScanner.next()); int rid = Integer.parseInt(inReplyToScanner.next()); - logger.info("Message is reply to #%d/%d", mid, rid); + logger.info("Message is reply to #{}/{}", mid, rid); body[0] = rid > 0 ? String.format("#%d/%d %s", mid, rid, body[0]) : String.format("#%d %s", mid, body[0]); } |