diff --git a/routes/auth.py b/routes/auth.py index d6e6761..d401d86 100644 --- a/routes/auth.py +++ b/routes/auth.py @@ -510,7 +510,7 @@ async def logout( token_record.revoked_at = datetime.now() await session.commit() - logger.info(f"👋 Déconnexion: {user.email}") + logger.info(f" Déconnexion: {user.email}") return {"success": True, "message": "Déconnexion réussie"} diff --git a/scripts/manage_security.py b/scripts/manage_security.py index 3745f53..a495033 100644 --- a/scripts/manage_security.py +++ b/scripts/manage_security.py @@ -1,6 +1,6 @@ import asyncio import sys -from database import get_session +from database.db_config import get_session from database.models.api_key import SwaggerUser, ApiKey from services.api_key import ApiKeyService from security.auth import hash_password @@ -313,7 +313,7 @@ if __name__ == "__main__": try: asyncio.run(main()) except KeyboardInterrupt: - logger.info("\n👋 Interrupted") + logger.info("\n Interrupted") sys.exit(0) except Exception as e: logger.error(f" Erreur: {e}")