fix: use logger instead of logging in fhe_service.py
Some checks failed
API Endpoint Tests / test-api-endpoints (push) Successful in 1m45s
Integration Tests / test-service-integration (push) Successful in 2m11s
Python Tests / test-python (push) Failing after 35s
Security Scanning / security-scan (push) Successful in 1m53s

The file was using logging.warning without importing logging module.
Changed to use logger which is already imported from aitbc.
This commit is contained in:
aitbc
2026-04-25 08:38:23 +02:00
parent b063612e1c
commit 80a9e890c5

View File

@@ -206,13 +206,13 @@ class FHEService:
try:
providers["tenseal"] = TenSEALProvider()
except ImportError as e:
logging.warning(f"TenSEAL provider not available: {e}")
logger.warning(f"TenSEAL provider not available: {e}")
# Optional Concrete ML provider
try:
providers["concrete"] = ConcreteMLProvider()
except ImportError:
logging.warning(
logger.warning(
"Concrete ML not installed; skipping Concrete provider. "
"Concrete ML requires Python <3.13. Current version: %s",
__import__("sys").version.split()[0],