From a6236b7192cd27a378f0956754176cceea714c87 Mon Sep 17 00:00:00 2001 From: clach04 Date: Sat, 21 May 2022 22:30:06 -0700 Subject: [PATCH] Partial fix for issue #10 - log filename and reason in log --- simplenote_sync/notes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simplenote_sync/notes.py b/simplenote_sync/notes.py index 7e59c1a..73456a2 100644 --- a/simplenote_sync/notes.py +++ b/simplenote_sync/notes.py @@ -64,7 +64,7 @@ def write(self, note, filename, access_time): os.utime(filename, (access_time, float(note['modifydate']))) return filename except: - self.log.error("Error writing note: %s", note['key']) + self.log.error("Error writing note id: %s, %r", note['key'], filename, exc_info=True) self.log.debug("Exception: %s", sys.exc_info()[1]) return False