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
......@@ -63,7 +63,7 @@ function lock_flow(file)
// TODO: This is hacked for a signed 32-bit time_t... watch out in 2038!
orig_date = f.date;
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;
}
remain = 0x80000000 - now;
......@@ -71,7 +71,7 @@ function lock_flow(file)
f.date = future;
mswait(1000);
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;
}
if (!f.open("wb")) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment