Commit d772eb76 authored by Liang Ding's avatar Liang Ding

#19

parent 010b039d
...@@ -138,10 +138,14 @@ public class StaticSiteProcessor { ...@@ -138,10 +138,14 @@ public class StaticSiteProcessor {
genPage("?p=" + currentPageNum); genPage("?p=" + currentPageNum);
for (final JSONObject article : articles) { articles.parallelStream().forEach(article -> {
final String permalink = article.optString(Article.ARTICLE_PERMALINK); final String permalink = article.optString(Article.ARTICLE_PERMALINK);
genURI(permalink); try {
} genURI(permalink);
} catch (final Exception e) {
LOGGER.log(Level.ERROR, "Generates an article [uri=" + permalink + "] failed", e);
}
});
currentPageNum++; currentPageNum++;
} }
......
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