Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
joram
joram
Commits
54a12650
Commit
54a12650
authored
Dec 15, 2020
by
Andre Freyssinet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Logging enhancements.
parent
5ee64ebf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
joram/a3/rt/src/main/java/fr/dyade/aaa/util/DBTransaction.java
.../a3/rt/src/main/java/fr/dyade/aaa/util/DBTransaction.java
+6
-5
No files found.
joram/a3/rt/src/main/java/fr/dyade/aaa/util/DBTransaction.java
View file @
54a12650
...
...
@@ -496,11 +496,6 @@ public abstract class DBTransaction extends AbstractTransaction implements DBTra
break
;
}
if
(
logmon
.
isLoggable
(
BasicLevel
.
DEBUG
))
logmon
.
log
(
BasicLevel
.
WARN
,
"DBTransaction, commit: try to reconnect"
,
sqle
);
else
logmon
.
log
(
BasicLevel
.
WARN
,
"DBTransaction, commit: try to reconnect - "
+
sqle
.
getMessage
());
try
{
// Do not wait the 1st time.
if
(
lastTry
!=
0L
)
{
...
...
@@ -510,6 +505,12 @@ public abstract class DBTransaction extends AbstractTransaction implements DBTra
if
(
delay
>
0
)
Thread
.
sleep
(
delay
);
}
catch
(
InterruptedException
exc
)
{}
}
if
(
logmon
.
isLoggable
(
BasicLevel
.
DEBUG
))
logmon
.
log
(
BasicLevel
.
WARN
,
"DBTransaction, commit: try to reconnect"
,
sqle
);
else
logmon
.
log
(
BasicLevel
.
WARN
,
"DBTransaction, commit: try to reconnect - "
+
sqle
.
getMessage
());
lastTry
=
System
.
currentTimeMillis
();
connectDB
();
createPreparedStatement
();
...
...
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