Skip to content
Snippets Groups Projects
Commit 843d8b11 authored by deuce's avatar deuce
Browse files

Better log messages when locks fail and aren't old enough to take over.

parent f2467ce5
No related branches found
No related tags found
No related merge requests found
...@@ -63,7 +63,7 @@ function lock_flow(file) ...@@ -63,7 +63,7 @@ function lock_flow(file)
// TODO: This is hacked for a signed 32-bit time_t... watch out in 2038! // TODO: This is hacked for a signed 32-bit time_t... watch out in 2038!
orig_date = f.date; orig_date = f.date;
if (orig_date > (now - 60*60*6)) { if (orig_date > (now - 60*60*6)) {
log(LOG_WARNING, format("%ld > %ld", orig_date, now-60*60*6)); log(LOG_INFO, format("Lock is too recent to override now (%ld) > six hours ago (%ld)", orig_date, now-60*60*6));
return false; return false;
} }
remain = 0x80000000 - now; remain = 0x80000000 - now;
...@@ -71,7 +71,7 @@ function lock_flow(file) ...@@ -71,7 +71,7 @@ function lock_flow(file)
f.date = future; f.date = future;
mswait(1000); mswait(1000);
if (f.date != future) { if (f.date != future) {
log(LOG_WARNING, format("%ld != future(%ld)", f.date, future)); log(LOG_WARNING, format("Failed to set date in the future fdate (%ld) != future (%ld)", f.date, future));
return false; return false;
} }
if (!f.open("wb")) { if (!f.open("wb")) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment