Commit 5e2c7e58 authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

RF: Don't use getEffectiveLevel, as the resulting call to setLevel will give

the funpack.config logger an explicit log level, which will cause it to not
use the level set on ancestor loggers. Assume that logger has not been
configured, and set it to NOTSET, so that parent logger settings will be used.
parent e29b3ae4
......@@ -73,7 +73,7 @@ PLUGIN_TYPES = ['loader',
'exporter']
class PluginRegistry(object):
class PluginRegistry:
"""The ``PluginRegistry`` keeps track of, and provides access to all
registered plugins.
"""
......@@ -198,7 +198,6 @@ def registerBuiltIns():
import funpack.metaproc_functions as mf
if firstTime:
loglevel = log.getEffectiveLevel()
log.setLevel(logging.CRITICAL)
importlib.reload(ue)
......@@ -209,7 +208,7 @@ def registerBuiltIns():
importlib.reload(mf)
if firstTime:
log.setLevel(loglevel)
log.setLevel(logging.NOTSET)
registry = PluginRegistry()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment