From 127d3b3f267b9f547a1c593ecbdbaf510d633fd5 Mon Sep 17 00:00:00 2001 From: Hemna Date: Fri, 22 Mar 2024 23:19:54 -0400 Subject: [PATCH] Fixed some logging in webchat --- aprsd/cmds/webchat.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/aprsd/cmds/webchat.py b/aprsd/cmds/webchat.py index d6bd1f3..18a2385 100644 --- a/aprsd/cmds/webchat.py +++ b/aprsd/cmds/webchat.py @@ -30,7 +30,7 @@ from aprsd.utils import trace CONF = cfg.CONF -LOG = logging.getLogger("APRSD") +LOG = logging.getLogger() auth = HTTPBasicAuth() users = {} socketio = None @@ -335,7 +335,6 @@ class WebChatProcessPacketThread(rx.APRSDProcessPacketThread): def process_our_message_packet(self, packet: packets.MessagePacket): global callsign_locations - LOG.info(f"process MessagePacket {repr(packet)}") # ok lets see if we have the location for the # person we just sent a message to. from_call = packet.get("from_call").upper() @@ -624,7 +623,7 @@ def webchat(ctx, flush, port): LOG.info(msg) LOG.info(f"APRSD Started version: {aprsd.__version__}") - CONF.log_opt_values(LOG, logging.DEBUG) + CONF.log_opt_values(logging.getLogger(), logging.DEBUG) user = CONF.admin.user users[user] = generate_password_hash(CONF.admin.password) if not port: