From 843d8b11dca78b097a2f5752b0fc1fd1c07ba6d4 Mon Sep 17 00:00:00 2001
From: deuce <>
Date: Fri, 16 Mar 2018 02:39:50 +0000
Subject: [PATCH] Better log messages when locks fail and aren't old enough to
 take over.

---
 exec/binkit.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/exec/binkit.js b/exec/binkit.js
index 30f133c84e..e15676638c 100644
--- a/exec/binkit.js
+++ b/exec/binkit.js
@@ -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")) {
-- 
GitLab