1
0
mirror of https://github.com/craigerl/aprsd.git synced 2025-09-02 05:07:53 -04:00

Removed more email references.

This commit is contained in:
Hemna 2024-12-10 16:55:05 -05:00
parent fcd1629fde
commit f0c02606eb
2 changed files with 4 additions and 28 deletions

View File

@ -122,7 +122,7 @@ def get_installed_extensions():
def show_built_in_plugins(console):
modules = [email, fortune, location, notify, ping, time, version, weather]
modules = [fortune, location, notify, ping, time, version, weather]
plugins = []
for module in modules:

View File

@ -59,27 +59,18 @@ def setup_logging(loglevel=None, quiet=False):
logging.root.handlers = [InterceptHandler()]
logging.root.setLevel(log_level)
imap_list = [
"imapclient.imaplib", "imaplib", "imapclient",
"imapclient.util",
]
aprslib_list = [
# We don't really want to see the aprslib parsing debug output.
disable_list = [
"aprslib",
"aprslib.parsing",
"aprslib.exceptions",
]
# We don't really want to see the aprslib parsing debug output.
disable_list = imap_list + aprslib_list
# remove every other logger's handlers
# and propagate to root logger
for name in logging.root.manager.loggerDict.keys():
logging.getLogger(name).handlers = []
if name in disable_list:
logging.getLogger(name).propagate = False
else:
logging.getLogger(name).propagate = True
logging.getLogger(name).propagate = name not in disable_list
handlers = [
{
@ -101,21 +92,6 @@ def setup_logging(loglevel=None, quiet=False):
},
)
if CONF.email_plugin.enabled and CONF.email_plugin.debug:
for name in imap_list:
logging.getLogger(name).propagate = True
# if CONF.admin.web_enabled:
# qh = QueueHandler(logging_queue)
# handlers.append(
# {
# "sink": qh, "serialize": False,
# "format": CONF.logging.logformat,
# "level": log_level,
# "colorize": False,
# },
# )
# configure loguru
logger.configure(handlers=handlers)
logger.level("DEBUG", color="<fg #BABABA>")