From 62bec849007f57e6ad25512cf46f4ebd9c44ae7e Mon Sep 17 00:00:00 2001 From: Son NK <> Date: Sat, 2 May 2020 16:23:40 +0200 Subject: [PATCH] Add obsolete warnings --- app/api/views/alias_options.py | 5 ++++- app/api/views/new_custom_alias.py | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/api/views/alias_options.py b/app/api/views/alias_options.py index eb0c938f..70860780 100644 --- a/app/api/views/alias_options.py +++ b/app/api/views/alias_options.py @@ -27,7 +27,7 @@ def options(): existing: array of existing aliases """ - LOG.warning("/v2/alias/options should be used instead") + LOG.warning("/alias/options is obsolete") user = g.user hostname = request.args.get("hostname") @@ -107,6 +107,8 @@ def options_v2(): """ + LOG.warning("/v2/alias/options is obsolete") + user = g.user hostname = request.args.get("hostname") @@ -186,6 +188,7 @@ def options_v3(): """ + LOG.warning("/v3/alias/options is obsolete") user = g.user hostname = request.args.get("hostname") diff --git a/app/api/views/new_custom_alias.py b/app/api/views/new_custom_alias.py index 81522ebe..5d6a6596 100644 --- a/app/api/views/new_custom_alias.py +++ b/app/api/views/new_custom_alias.py @@ -29,6 +29,7 @@ def new_custom_alias(): 409 if the alias already exists """ + LOG.warning("/alias/custom/new is obsolete") user: User = g.user if not user.can_create_new_alias(): LOG.d("user %s cannot create any custom alias", user)