diff options
author | Lars Wirzenius <liw@liw.fi> | 2012-12-02 10:45:52 +0000 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2012-12-02 10:45:52 +0000 |
commit | b79121abfe1a3c04af0b77855c9f45a03cbc8332 (patch) | |
tree | d6676569218cf4346ca1ed80f175a4c76e051070 | |
parent | 61a8858c5d5ea2729d671f6a3f59870cc9a92832 (diff) | |
download | larch-b79121abfe1a3c04af0b77855c9f45a03cbc8332.tar.gz |
Log the exception that gets replaced by NodeMissing
-rw-r--r-- | larch/nodestore_disk.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/larch/nodestore_disk.py b/larch/nodestore_disk.py index 11f48b5..65c5f93 100644 --- a/larch/nodestore_disk.py +++ b/larch/nodestore_disk.py @@ -20,6 +20,7 @@ import os import StringIO import struct import tempfile +import traceback import tracing import larch @@ -234,6 +235,7 @@ class NodeStoreDisk(larch.NodeStore): except (IOError, OSError), e: logging.error('Error reading node: %s: %s: %s' % (e.errno, e.strerror, e.filename or name)) + logging.debug(traceback.format_exc()) raise larch.NodeMissing(self.dirname, node_id) else: node = self.codec.decode(encoded) |