diff --git a/js8call_integration.py b/js8call_integration.py index 46783ff..bf0a0cc 100644 --- a/js8call_integration.py +++ b/js8call_integration.py @@ -28,6 +28,8 @@ class JS8CallClient: def __init__(self, interface, logger=None): self.logger = logger or logging.getLogger('js8call') self.logger.setLevel(logging.INFO) + self.logger.propagate = False + self.config = configparser.ConfigParser() self.config.read(config_file) @@ -98,7 +100,6 @@ class JS8CallClient: INSERT INTO messages (sender, receiver, message) VALUES (?, ?, ?) ''', (sender, receiver, message)) - self.logger.info(f"Message inserted: {sender} to {receiver} - {message}") except sqlite3.Error as e: self.logger.error(f"Failed to insert message into database: {e}") @@ -127,7 +128,6 @@ class JS8CallClient: INSERT INTO urgent (sender, groupname, message) VALUES (?, ?, ?) ''', (sender, groupname, message)) - self.logger.info(f"Urgent message inserted: {sender} to {groupname} - {message}") except sqlite3.Error as e: self.logger.error(f"Failed to insert urgent message into database: {e}") @@ -293,4 +293,4 @@ def handle_group_message_selection(sender_id, message, step, state, interface): send_message("Invalid group selection. Please choose again.", sender_id, interface) handle_group_messages_command(sender_id, interface) - handle_js8call_command(sender_id, interface) + handle_js8call_command(sender_id, interface) \ No newline at end of file