Skip to content

Commit

Permalink
Partial fix for issue linickx#10 - log filename and reason in log
Browse files Browse the repository at this point in the history
  • Loading branch information
clach04 committed May 22, 2022
1 parent acb613f commit a6236b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion simplenote_sync/notes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit a6236b7

Please sign in to comment.