Commit f610abaa authored by Liang Ding's avatar Liang Ding

🎨 改进推送日志

parent 4b088315
...@@ -121,7 +121,7 @@ public class B3ArticleSender extends AbstractEventListener<JSONObject> { ...@@ -121,7 +121,7 @@ public class B3ArticleSender extends AbstractEventListener<JSONObject> {
contentTypeJson().header("User-Agent", Solos.USER_AGENT).send(); contentTypeJson().header("User-Agent", Solos.USER_AGENT).send();
response.charset("UTF-8"); response.charset("UTF-8");
final JSONObject result = new JSONObject(response.bodyText()); final JSONObject result = new JSONObject(response.bodyText());
LOGGER.log(Level.INFO, "Pushed an article [title=" + title + "] to Rhy, result [" + result.toString() + "]"); LOGGER.log(Level.INFO, "Pushed an article [title=" + title + "] to Rhy, result [" + result.optString(Keys.MSG) + "]");
} catch (final Exception e) { } catch (final Exception e) {
LOGGER.log(Level.ERROR, "Pushes an article to Rhy failed: " + e.getMessage()); LOGGER.log(Level.ERROR, "Pushes an article to Rhy failed: " + e.getMessage());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment