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
8e8565d0
Commit
8e8565d0
authored
Nov 08, 2017
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🎨
Fix #12367
parent
08041362
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
11 deletions
+4
-11
src/main/java/org/b3log/solo/service/UpgradeService.java
src/main/java/org/b3log/solo/service/UpgradeService.java
+4
-11
No files found.
src/main/java/org/b3log/solo/service/UpgradeService.java
View file @
8e8565d0
...
@@ -52,7 +52,7 @@ import java.sql.Statement;
...
@@ -52,7 +52,7 @@ import java.sql.Statement;
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="mailto:dongxu.wang@acm.org">Dongxu Wang</a>
* @author <a href="mailto:dongxu.wang@acm.org">Dongxu Wang</a>
* @version 1.2.0.
19, Sep 22
, 2017
* @version 1.2.0.
20, Nov 8
, 2017
* @since 1.2.0
* @since 1.2.0
*/
*/
@Service
@Service
...
@@ -83,11 +83,6 @@ public class UpgradeService {
...
@@ -83,11 +83,6 @@ public class UpgradeService {
*/
*/
private
static
final
String
TO_VER
=
SoloServletListener
.
VERSION
;
private
static
final
String
TO_VER
=
SoloServletListener
.
VERSION
;
/**
* Whether the email has been sent.
*/
private
static
boolean
sent
=
false
;
/**
/**
* Article repository.
* Article repository.
*/
*/
...
@@ -151,12 +146,10 @@ public class UpgradeService {
...
@@ -151,12 +146,10 @@ public class UpgradeService {
return
;
return
;
}
}
LOGGER
.
log
(
Level
.
WARN
,
"Attempt to skip more than one version to upgrade. Expected: {0}; Actually: {1}"
,
FROM_VER
,
currentVer
);
LOGGER
.
log
(
Level
.
ERROR
,
"Attempt to skip more than one version to upgrade. Expected: {0}, Actually: {1}"
,
FROM_VER
,
currentVer
);
notifyUserByEmail
();
if
(!
sent
)
{
System
.
exit
(-
1
);
notifyUserByEmail
();
sent
=
true
;
}
}
catch
(
final
Exception
e
)
{
}
catch
(
final
Exception
e
)
{
LOGGER
.
log
(
Level
.
ERROR
,
e
.
getMessage
(),
e
);
LOGGER
.
log
(
Level
.
ERROR
,
e
.
getMessage
(),
e
);
LOGGER
.
log
(
Level
.
ERROR
,
LOGGER
.
log
(
Level
.
ERROR
,
...
...
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