Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
08041362
Commit
08041362
authored
Nov 08, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📈
Blog info for diagnosis
parent
011bdf36
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/main/java/org/b3log/solo/processor/BlogProcessor.java
src/main/java/org/b3log/solo/processor/BlogProcessor.java
+6
-4
No files found.
src/main/java/org/b3log/solo/processor/BlogProcessor.java
View file @
08041362
...
@@ -50,7 +50,7 @@ import java.util.Set;
...
@@ -50,7 +50,7 @@ import java.util.Set;
* Blog processor.
* Blog processor.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.3.0.
6, Sep 6
, 2017
* @version 1.3.0.
7, Nov 8
, 2017
* @since 0.4.6
* @since 0.4.6
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -106,8 +106,10 @@ public class BlogProcessor {
...
@@ -106,8 +106,10 @@ public class BlogProcessor {
* <li>Serve path</li>
* <li>Serve path</li>
* <li>Static serve path</li>
* <li>Static serve path</li>
* <li>Solo version</li>
* <li>Solo version</li>
* <li>Runtime environment (LOCAL)</li>
* <li>Runtime mode</li>
* <li>Runtime database</li>
* <li>Locale</li>
* <li>Locale</li>
* <li>Admin username</li>
* </ul>
* </ul>
*
*
* @param context the specified context
* @param context the specified context
...
@@ -122,16 +124,16 @@ public class BlogProcessor {
...
@@ -122,16 +124,16 @@ public class BlogProcessor {
jsonObject
.
put
(
"recentArticleTime"
,
articleQueryService
.
getRecentArticleTime
());
jsonObject
.
put
(
"recentArticleTime"
,
articleQueryService
.
getRecentArticleTime
());
final
JSONObject
statistic
=
statisticQueryService
.
getStatistic
();
final
JSONObject
statistic
=
statisticQueryService
.
getStatistic
();
jsonObject
.
put
(
"articleCount"
,
statistic
.
getLong
(
Option
.
ID_C_STATISTIC_PUBLISHED_ARTICLE_COUNT
));
jsonObject
.
put
(
"articleCount"
,
statistic
.
getLong
(
Option
.
ID_C_STATISTIC_PUBLISHED_ARTICLE_COUNT
));
jsonObject
.
put
(
"commentCount"
,
statistic
.
getLong
(
Option
.
ID_C_STATISTIC_PUBLISHED_BLOG_COMMENT_COUNT
));
jsonObject
.
put
(
"commentCount"
,
statistic
.
getLong
(
Option
.
ID_C_STATISTIC_PUBLISHED_BLOG_COMMENT_COUNT
));
jsonObject
.
put
(
"tagCount"
,
tagQueryService
.
getTagCount
());
jsonObject
.
put
(
"tagCount"
,
tagQueryService
.
getTagCount
());
jsonObject
.
put
(
"servePath"
,
Latkes
.
getServePath
());
jsonObject
.
put
(
"servePath"
,
Latkes
.
getServePath
());
jsonObject
.
put
(
"staticServePath"
,
Latkes
.
getStaticServePath
());
jsonObject
.
put
(
"staticServePath"
,
Latkes
.
getStaticServePath
());
jsonObject
.
put
(
"version"
,
SoloServletListener
.
VERSION
);
jsonObject
.
put
(
"version"
,
SoloServletListener
.
VERSION
);
jsonObject
.
put
(
"locale"
,
Latkes
.
getLocale
());
jsonObject
.
put
(
"runtimeMode"
,
Latkes
.
getRuntimeMode
());
jsonObject
.
put
(
"runtimeMode"
,
Latkes
.
getRuntimeMode
());
jsonObject
.
put
(
"runtimeDatabase"
,
Latkes
.
getRuntimeDatabase
());
jsonObject
.
put
(
"runtimeDatabase"
,
Latkes
.
getRuntimeDatabase
());
jsonObject
.
put
(
"locale"
,
Latkes
.
getLocale
());
jsonObject
.
put
(
"userName"
,
userQueryService
.
getAdmin
().
optString
(
User
.
USER_NAME
));
}
}
/**
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment