log: include caller in debug storage logging

includes the location where Set*Key/Delete*Key was called.
This commit is contained in:
Harvey Tindall
2023-10-12 18:21:47 +01:00
parent 742f5c095a
commit 3143d32b45
2 changed files with 13 additions and 8 deletions
+1 -1
View File
@@ -111,7 +111,7 @@ func (st *Storage) DebugWatch(storeType StoreType, key, mainData string) {
actionString = "DELETE"
}
if logAction == LogAll || mainData == "" {
st.debug.Printf("%s: %s[%s] = \"%s\"\n", actionString, actionKey, key, mainData)
st.debug.Printf("%s @ %s %s[%s] = \"%s\"\n", actionString, logger.Lshortfile(3), actionKey, key, mainData)
}
}