Add logging for fallback.
This commit is contained in:
parent
bafd069d97
commit
72a91ebce6
1 changed files with 3 additions and 0 deletions
|
|
@ -355,9 +355,12 @@ class CmdSetHandler(object):
|
||||||
# If a cmdset fails to load, check if we have a fallback path to use
|
# If a cmdset fails to load, check if we have a fallback path to use
|
||||||
fallback_path = settings.CMDSET_FALLBACKS.get(path, None)
|
fallback_path = settings.CMDSET_FALLBACKS.get(path, None)
|
||||||
if fallback_path:
|
if fallback_path:
|
||||||
|
logger.log_err("Error encountered for cmdset at path %s. Replacing with: %s" % (
|
||||||
|
path, fallback_path))
|
||||||
cmdset = self._import_cmdset(fallback_path)
|
cmdset = self._import_cmdset(fallback_path)
|
||||||
# If no cmdset is returned from the fallback, we can't go further
|
# If no cmdset is returned from the fallback, we can't go further
|
||||||
if not cmdset:
|
if not cmdset:
|
||||||
|
logger.log_err("Fallback path '%s' failed to generate a cmdset." % fallback_path)
|
||||||
continue
|
continue
|
||||||
cmdset.permanent = cmdset.key != '_CMDSET_ERROR'
|
cmdset.permanent = cmdset.key != '_CMDSET_ERROR'
|
||||||
self.cmdset_stack.append(cmdset)
|
self.cmdset_stack.append(cmdset)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue