Remove unnecessary debug outputs for production performance
This commit is contained in:
@@ -191,10 +191,14 @@ def test_simulation():
|
||||
def debug_info():
|
||||
"""
|
||||
Debug endpoint to verify deployment and test functionality.
|
||||
|
||||
Returns:
|
||||
JSON response with debug information
|
||||
Only available in development mode.
|
||||
"""
|
||||
from flask import current_app
|
||||
|
||||
# Only allow debug endpoint in development mode
|
||||
if not current_app.config.get('DEVELOPMENT', False):
|
||||
return jsonify({'error': 'Debug endpoint not available in production'}), 403
|
||||
|
||||
import os
|
||||
from datetime import datetime
|
||||
from app.models.economic_model import EconomicSimulation, SimulationParameters
|
||||
|
Reference in New Issue
Block a user