Fix error 500

parent 32380465
...@@ -821,6 +821,10 @@ class RotationHandler: ...@@ -821,6 +821,10 @@ class RotationHandler:
notify_errors = getattr(rotation_config, 'notifyerrors', False) notify_errors = getattr(rotation_config, 'notifyerrors', False)
logger.info(f"notifyerrors setting for rotation '{rotation_id}': {notify_errors}") logger.info(f"notifyerrors setting for rotation '{rotation_id}': {notify_errors}")
# Extract stream setting early - needed for error handling
stream = request_data.get('stream', False)
logger.info(f"Request stream mode: {stream}")
logger.info(f"Rotation config loaded successfully") logger.info(f"Rotation config loaded successfully")
providers = rotation_config.providers providers = rotation_config.providers
logger.info(f"Number of providers in rotation: {len(providers)}") logger.info(f"Number of providers in rotation: {len(providers)}")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment