Use exc_info for error logging

This commit is contained in:
thePR0M3TH3AN committed 2025-07-01 18:23:44 -04:00
1 parent 1fec888bd5
commit f6a94d06cc
17 files changed
+149 -193

No files matched your search

+1 -2
View File
@@ -21,8 +21,7 @@ try:
logger.info("Modules imported successfully.")
except Exception as e:
if logger.isEnabledFor(logging.DEBUG):
logger.error(f"Failed to import one or more modules: {e}")
logger.error(traceback.format_exc()) # Log full traceback
logger.error(f"Failed to import one or more modules: {e}", exc_info=True)
__all__ = [
"derive_key_from_password",