Add traceback to error messages, v1.0.20

This commit is contained in:
2026-07-24 09:19:38 +04:00
parent 46af9bb7fa
commit 6f0b9c876f
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -6,7 +6,7 @@ from routes.main import bp as main_bp
from routes.api import bp as api_bp
from routes.api_test import bp as api_test_bp
VERSION = "1.0.19"
VERSION = "1.0.20"
app = Flask(__name__, template_folder="templates", static_folder="static")
app.config["NUBES_API_ENDPOINT"] = os.getenv("NUBES_API_ENDPOINT", "https://lk-api-gateway-dev.ngcloud.ru/api/v1/svc")
+2 -1
View File
@@ -134,8 +134,9 @@ def api_test():
time.sleep(5)
result["status"] = "TIMEOUT"
except Exception as e:
import traceback
result["status"] = "FAIL"
result["error"] = str(e)
result["error"] = str(e) + " | " + traceback.format_exc()[-200:]
result["instanceUid"] = instance_uid
result["duration"] = round(time.time() - t0, 1)