style lint

pull/18952/head
xiongyao 1 year ago
parent 284d322a9f
commit ba7ccb828f

@ -31,8 +31,10 @@ def create_flask_app_with_configs() -> DifyApp:
request_id = get_request_id()
try:
if request.method.lower() == "post" and "application/json" in request.headers.get("content-type",
"").lower():
if (
request.method.lower() == "post"
and "application/json" in request.headers.get("content-type", "").lower()
):
logging.info(
f"[before request]|request_id: {request_id},"
f" method: {request.method}, url: {request.url}, request_data: {request.get_json()}"

Loading…
Cancel
Save