Skip to content

Commit

Permalink
🎨 调整细节
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Sep 15, 2018
1 parent d0a963e commit e85f3fd
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/main/java/org/b3log/symphony/SymphonyServletListener.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public void contextInitialized(final ServletContextEvent servletContextEvent) {
Latkes.setScanPath("org.b3log.symphony");
super.contextInitialized(servletContextEvent);

// del this after done TODO: https://github.com/b3log/symphony/issues/98
final String skinDirName = Symphonys.get("skinDirName");
Latkes.loadSkin(skinDirName);

Expand Down Expand Up @@ -215,7 +214,7 @@ public void requestInitialized(final ServletRequestEvent servletRequestEvent) {
}

if (BrowserType.ROBOT == browserType) {
LOGGER.log(Level.DEBUG, "Request made from a search engine[User-Agent={0}]",
LOGGER.log(Level.DEBUG, "Request made from a search engine [User-Agent={0}]",
httpServletRequest.getHeader(Common.USER_AGENT));
httpServletRequest.setAttribute(Keys.HttpRequest.IS_SEARCH_ENGINE_BOT, true);

Expand All @@ -234,7 +233,7 @@ public void requestInitialized(final ServletRequestEvent servletRequestEvent) {

// Gets the session of this request
final HttpSession session = httpServletRequest.getSession();
LOGGER.log(Level.TRACE, "Gets a session[id={0}, remoteAddr={1}, User-Agent={2}, isNew={3}]",
LOGGER.log(Level.TRACE, "Gets a session [id={0}, remoteAddr={1}, User-Agent={2}, isNew={3}]",
session.getId(), httpServletRequest.getRemoteAddr(),
httpServletRequest.getHeader(Common.USER_AGENT), session.isNew());

Expand Down

0 comments on commit e85f3fd

Please sign in to comment.