diff --git a/app.py b/app.py index b13d3a0..335ffc9 100644 --- a/app.py +++ b/app.py @@ -393,7 +393,8 @@ def inject_company_context(): 'active_company': active_company, 'has_multiple_companies': len(user_companies) > 1, } - except Exception: + except Exception as e: + logger.error(f"inject_company_context error for user {current_user.id}: {e}") return {} finally: db.close()