From c89ddc4cbf907764208b8517ee3a43ff015cecdd Mon Sep 17 00:00:00 2001
From: Jason Volk <jason@zemos.net>
Date: Fri, 28 Feb 2020 17:15:25 -0800
Subject: [PATCH] ircd::db: Additional iterator validity indication in logmsg.

---
 ircd/db.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/ircd/db.cc b/ircd/db.cc
index 4618c89ea..2e49dea28 100644
--- a/ircd/db.cc
+++ b/ircd/db.cc
@@ -7815,12 +7815,13 @@ catch(const error &e)
 	const database &d(*c.d);
 	log::critical
 	{
-		log, "[%s][%s] %lu:%lu SEEK %s :%s",
+		log, "[%s][%s] %lu:%lu SEEK %s %s :%s",
 		name(d),
 		name(c),
 		sequence(d),
 		sequence(opts.snapshot),
 		reflect(p),
+		it.Valid()? "VALID" : "INVALID",
 		e.what(),
 	};