diff --git a/app/api/views/new_custom_alias.py b/app/api/views/new_custom_alias.py index 2a12583e..78c5b138 100644 --- a/app/api/views/new_custom_alias.py +++ b/app/api/views/new_custom_alias.py @@ -144,7 +144,7 @@ def new_custom_alias_v2(): LOG.warning("Alias creation time expired for %s", user) return jsonify(error="Alias creation time is expired, please retry"), 412 except Exception: - LOG.exception("Alias suffix is tampered, user %s", user) + LOG.warning("Alias suffix is tampered, user %s", user) return jsonify(error="Tampered suffix"), 400 if not verify_prefix_suffix(user, alias_prefix, alias_suffix): @@ -254,7 +254,7 @@ def new_custom_alias_v3(): LOG.warning("Alias creation time expired for %s", user) return jsonify(error="Alias creation time is expired, please retry"), 412 except Exception: - LOG.exception("Alias suffix is tampered, user %s", user) + LOG.warning("Alias suffix is tampered, user %s", user) return jsonify(error="Tampered suffix"), 400 if not verify_prefix_suffix(user, alias_prefix, alias_suffix): diff --git a/app/dashboard/views/custom_alias.py b/app/dashboard/views/custom_alias.py index a3b61903..f89a9405 100644 --- a/app/dashboard/views/custom_alias.py +++ b/app/dashboard/views/custom_alias.py @@ -94,7 +94,7 @@ def custom_alias(): flash("Alias creation time is expired, please retry", "warning") return redirect(url_for("dashboard.custom_alias")) except Exception: - LOG.exception("Alias suffix is tampered, user %s", current_user) + LOG.warning("Alias suffix is tampered, user %s", current_user) flash("Unknown error, refresh the page", "error") return redirect(url_for("dashboard.custom_alias")) diff --git a/app/oauth/views/authorize.py b/app/oauth/views/authorize.py index 8b6c5440..f6f36eda 100644 --- a/app/oauth/views/authorize.py +++ b/app/oauth/views/authorize.py @@ -160,7 +160,7 @@ def authorize(): flash("Alias creation time is expired, please retry", "warning") return redirect(request.url) except Exception: - LOG.exception("Alias suffix is tampered, user %s", current_user) + LOG.warning("Alias suffix is tampered, user %s", current_user) flash("Unknown error, refresh the page", "error") return redirect(request.url)