0

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.
This commit is contained in:
Andrew Brown
2012-09-10 20:38:50 -04:00
parent 258bce39c2
commit 55f2273f81

View File

@@ -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):