Fixes: 1) Fixed missing `exc_info` flag in critical and error logs to provide richer error context; 2) Addressed redundant code and unused imports in the logging logic for cleaner execution. Extra: Refactored `LOGGING` configuration for improved readability and runtime adaptability; optimized related log-handling logic throughout the codebase.
3 lines
53 B
Python
3 lines
53 B
Python
import logging
|
|
|
|
logger = logging.getLogger(__name__)
|