From dbc610c40a39254aba32709d19d7d82130f33cf7 Mon Sep 17 00:00:00 2001 From: Alejandro Sirgo Rica Date: Mon, 1 Jul 2024 09:28:04 +0200 Subject: views: remove debug messages with payload info Remove print statements in views.py to reduce logging noise. --- ogcp/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ogcp/views.py b/ogcp/views.py index c2a6a17..ac5df38 100644 --- a/ogcp/views.py +++ b/ogcp/views.py @@ -1953,7 +1953,7 @@ def action_mode(): if request.method == 'POST': ips = form.ips.data.split(' ') payload = { 'clients': ips, 'mode': form.boot.data } - print(payload) + server = get_server_from_clients(ips) r = server.post('/mode', payload) if r.status_code == requests.codes.ok: @@ -2797,7 +2797,7 @@ def action_repo_delete(): else: params = request.args.to_dict() repos = parse_elements(params) - print(repos) + if not validate_elements(repos, max_len=1): return redirect(url_for('manage_repos')) repo_id = repos.pop() -- cgit v1.2.3-18-g5258