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
a0470aa3
Unverified
Commit
a0470aa3
authored
Sep 18, 2019
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
微调日志
parent
230450f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/main/java/org/b3log/solo/service/ExportService.java
src/main/java/org/b3log/solo/service/ExportService.java
+4
-2
No files found.
src/main/java/org/b3log/solo/service/ExportService.java
View file @
a0470aa3
...
@@ -51,7 +51,7 @@ import java.util.stream.Collectors;
...
@@ -51,7 +51,7 @@ import java.util.stream.Collectors;
* Export service.
* Export service.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.1.
0, Jul 29
, 2019
* @version 1.1.1.
1, Sep 18
, 2019
* @since 2.5.0
* @since 2.5.0
*/
*/
@Service
@Service
...
@@ -150,8 +150,8 @@ public class ExportService {
...
@@ -150,8 +150,8 @@ public class ExportService {
* Exports public articles to admin's GitHub repos. 博文定时同步 GitHub 仓库 https://hacpai.com/article/1557238327458
* Exports public articles to admin's GitHub repos. 博文定时同步 GitHub 仓库 https://hacpai.com/article/1557238327458
*/
*/
public
void
exportGitHubRepo
()
{
public
void
exportGitHubRepo
()
{
LOGGER
.
log
(
Level
.
INFO
,
"Github repo syncing...."
);
try
{
try
{
LOGGER
.
log
(
Level
.
INFO
,
"Github repo syncing...."
);
final
JSONObject
preference
=
optionQueryService
.
getPreference
();
final
JSONObject
preference
=
optionQueryService
.
getPreference
();
if
(
null
==
preference
)
{
if
(
null
==
preference
)
{
return
;
return
;
...
@@ -265,6 +265,8 @@ public class ExportService {
...
@@ -265,6 +265,8 @@ public class ExportService {
LOGGER
.
info
(
"Github repo sync completed: "
+
response
.
bodyText
());
LOGGER
.
info
(
"Github repo sync completed: "
+
response
.
bodyText
());
}
catch
(
final
Exception
e
)
{
}
catch
(
final
Exception
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
"Exports articles to github repo failed"
,
e
);
LOGGER
.
log
(
Level
.
ERROR
,
"Exports articles to github repo failed"
,
e
);
}
finally
{
LOGGER
.
log
(
Level
.
INFO
,
"Github repo synced"
);
}
}
}
}
...
...
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