From 55f2273f81ea483acc6e214d01c0d487ecb4e330 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Mon, 10 Sep 2012 20:38:50 -0400 Subject: [PATCH] Added a debug output to accompany a warning. If there is an error reading or parsing overviewerConfig.js, it prints a warning and continues, but gives no indication of what went wrong. Added a debug line that prints the full traceback. --- overviewer_core/assetmanager.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/overviewer_core/assetmanager.py b/overviewer_core/assetmanager.py index 4825a65..d9102c2 100644 --- a/overviewer_core/assetmanager.py +++ b/overviewer_core/assetmanager.py @@ -19,6 +19,7 @@ import codecs import locale import time import logging +import traceback from PIL import Image @@ -51,6 +52,7 @@ directory. except Exception, e: if os.path.exists(os.path.join(self.outputdir, "overviewerConfig.js")): logging.warning("A previous overviewerConfig.js was found, but I couldn't read it for some reason. Continuing with a blank config") + logging.debug(traceback.format_exc()) self.overviewerConfig = dict(tilesets=dict()) def get_tileset_config(self, name):