Adjust logging for tests

This commit is contained in:
thePR0M3TH3AN
2025-07-01 15:16:01 -04:00
parent 74df5f654c
commit d7ea493663
6 changed files with 42 additions and 17 deletions

View File

@@ -3,6 +3,8 @@
import logging
import traceback
logger = logging.getLogger(__name__)
try:
from .file_lock import exclusive_lock, shared_lock
from .key_derivation import (
@@ -15,10 +17,12 @@ try:
from .checksum import calculate_checksum, verify_checksum
from .password_prompt import prompt_for_password
logging.info("Modules imported successfully.")
if logger.isEnabledFor(logging.DEBUG):
logger.info("Modules imported successfully.")
except Exception as e:
logging.error(f"Failed to import one or more modules: {e}")
logging.error(traceback.format_exc()) # Log full traceback
if logger.isEnabledFor(logging.DEBUG):
logger.error(f"Failed to import one or more modules: {e}")
logger.error(traceback.format_exc()) # Log full traceback
__all__ = [
"derive_key_from_password",