From 69f1619816723d661f5671bb5644049c2732d84e Mon Sep 17 00:00:00 2001 From: thePR0M3TH3AN <53631862+PR0M3TH3AN@users.noreply.github.com> Date: Tue, 12 Aug 2025 10:03:54 -0400 Subject: [PATCH] Remove obsolete logging configuration module --- src/nostr/logging_config.py | 41 -------------------------------- src/repo-context.txt | 47 ------------------------------------- 2 files changed, 88 deletions(-) delete mode 100644 src/nostr/logging_config.py diff --git a/src/nostr/logging_config.py b/src/nostr/logging_config.py deleted file mode 100644 index def3e1a..0000000 --- a/src/nostr/logging_config.py +++ /dev/null @@ -1,41 +0,0 @@ -# nostr/logging_config.py - -import logging -import os - -# Comment out or remove the configure_logging function to avoid conflicts -# def configure_logging(): -# """ -# Configures logging with both file and console handlers. -# Logs include the timestamp, log level, message, filename, and line number. -# Only ERROR and higher-level messages are shown in the terminal, while all messages -# are logged in the log file. -# """ -# logger = logging.getLogger() -# logger.setLevel(logging.DEBUG) # Set root logger to DEBUG -# -# # Prevent adding multiple handlers if configure_logging is called multiple times -# if not logger.handlers: -# # Create the 'logs' folder if it doesn't exist -# log_directory = 'logs' -# if not os.path.exists(log_directory): -# os.makedirs(log_directory) -# -# # Create handlers -# c_handler = logging.StreamHandler() -# f_handler = logging.FileHandler(os.path.join(log_directory, 'app.log')) -# -# # Set levels: only errors and critical messages will be shown in the console -# c_handler.setLevel(logging.ERROR) -# f_handler.setLevel(logging.DEBUG) -# -# # Create formatters and add them to handlers, include file and line number in log messages -# formatter = logging.Formatter( -# '%(asctime)s [%(levelname)s] %(message)s [%(filename)s:%(lineno)d]' -# ) -# c_handler.setFormatter(formatter) -# f_handler.setFormatter(formatter) -# -# # Add handlers to the logger -# logger.addHandler(c_handler) -# logger.addHandler(f_handler) diff --git a/src/repo-context.txt b/src/repo-context.txt index 30f018d..0e3a669 100644 --- a/src/repo-context.txt +++ b/src/repo-context.txt @@ -28,7 +28,6 @@ Generated on: 2025-04-06 ├── encryption_manager.py ├── event_handler.py ├── key_manager.py - ├── logging_config.py ├── utils.py ├── utils/ ├── __init__.py @@ -3082,52 +3081,6 @@ __all__ = ['NostrClient'] ``` -## nostr/logging_config.py -```python -# nostr/logging_config.py - -import logging -import os - -# Comment out or remove the configure_logging function to avoid conflicts -# def configure_logging(): -# """ -# Configures logging with both file and console handlers. -# Logs include the timestamp, log level, message, filename, and line number. -# Only ERROR and higher-level messages are shown in the terminal, while all messages -# are logged in the log file. -# """ -# logger = logging.getLogger() -# logger.setLevel(logging.DEBUG) # Set root logger to DEBUG -# -# # Prevent adding multiple handlers if configure_logging is called multiple times -# if not logger.handlers: -# # Create the 'logs' folder if it doesn't exist -# log_directory = 'logs' -# if not os.path.exists(log_directory): -# os.makedirs(log_directory) -# -# # Create handlers -# c_handler = logging.StreamHandler() -# f_handler = logging.FileHandler(os.path.join(log_directory, 'app.log')) -# -# # Set levels: only errors and critical messages will be shown in the console -# c_handler.setLevel(logging.ERROR) -# f_handler.setLevel(logging.DEBUG) -# -# # Create formatters and add them to handlers, include file and line number in log messages -# formatter = logging.Formatter( -# '%(asctime)s [%(levelname)s] %(message)s [%(filename)s:%(lineno)d]' -# ) -# c_handler.setFormatter(formatter) -# f_handler.setFormatter(formatter) -# -# # Add handlers to the logger -# logger.addHandler(c_handler) -# logger.addHandler(f_handler) - -``` - ## nostr/event_handler.py ```python # nostr/event_handler.py