Using a dedicated logger inside overviewer_core.
This commit is contained in:
@@ -27,6 +27,10 @@ import world
|
||||
import util
|
||||
from files import FileReplacer, mirror_dir
|
||||
|
||||
|
||||
LOG = logging.getLogger(__name__)
|
||||
|
||||
|
||||
class AssetManager(object):
|
||||
"""\
|
||||
These objects provide an interface to metadata and persistent data, and at the
|
||||
@@ -51,8 +55,8 @@ directory.
|
||||
self.overviewerConfig = json.loads(overviewerConfig_str)
|
||||
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())
|
||||
LOG.warning("A previous overviewerConfig.js was found, but I couldn't read it for some reason. Continuing with a blank config")
|
||||
LOG.debug(traceback.format_exc())
|
||||
self.overviewerConfig = dict(tilesets=dict())
|
||||
|
||||
def get_tileset_config(self, name):
|
||||
|
||||
Reference in New Issue
Block a user