mirror of
https://github.com/ysoftdevs/DependencyCheck.git
synced 2026-03-28 03:51:33 +01:00
updated log statement per issue #1008
This commit is contained in:
@@ -145,8 +145,8 @@ public class H2DBLock {
|
|||||||
if (lock == null || !lock.isValid()) {
|
if (lock == null || !lock.isValid()) {
|
||||||
try {
|
try {
|
||||||
final Timestamp timestamp = new Timestamp(System.currentTimeMillis());
|
final Timestamp timestamp = new Timestamp(System.currentTimeMillis());
|
||||||
LOGGER.debug("Sleeping thread {} ({}) for 10 seconds because an exclusive lock on the database could not be obtained ({})",
|
LOGGER.debug("Sleeping thread {} ({}) for {} seconds because an exclusive lock on the database could not be obtained ({})",
|
||||||
Thread.currentThread().getName(), magic, timestamp.toString());
|
Thread.currentThread().getName(), magic, SLEEP_DURATION / 1000, timestamp.toString());
|
||||||
Thread.sleep(SLEEP_DURATION);
|
Thread.sleep(SLEEP_DURATION);
|
||||||
} catch (InterruptedException ex) {
|
} catch (InterruptedException ex) {
|
||||||
LOGGER.debug("sleep was interrupted.", ex);
|
LOGGER.debug("sleep was interrupted.", ex);
|
||||||
|
|||||||
Reference in New Issue
Block a user