diff --git a/geomagio/api/secure/SessionMiddleware.py b/geomagio/api/secure/SessionMiddleware.py
index 3bf0ea8e07cf2f5fe89a434b2a12615e84ad60a4..3d455bad5c24849b4d73984850957eeaf6d9c767 100644
--- a/geomagio/api/secure/SessionMiddleware.py
+++ b/geomagio/api/secure/SessionMiddleware.py
@@ -1,6 +1,7 @@
 import json
-from typing import Callable, Dict, Mapping
+import logging
 import uuid
+from typing import Callable, Dict, Mapping
 
 from cryptography.fernet import Fernet
 from starlette.datastructures import MutableHeaders
@@ -73,6 +74,7 @@ class SessionMiddleware:
                 scope["session"] = await self.get_session(session_id)
                 initial_session_was_empty = False
             except Exception:
+                logging.exception(f"Error loading session {session_id}")
                 scope["session"] = {}
         else:
             scope["session"] = {}