From 93beb10c49538938e826a7fff406c07127a22fac Mon Sep 17 00:00:00 2001 From: Fabian Date: Wed, 1 Apr 2020 00:31:13 +0200 Subject: [PATCH] dev --- consumer_api/views/consumers_view.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/consumer_api/views/consumers_view.py b/consumer_api/views/consumers_view.py index c12739c..0582bc4 100644 --- a/consumer_api/views/consumers_view.py +++ b/consumer_api/views/consumers_view.py @@ -1,7 +1,7 @@ import json from db import redis_client -from flask import jsonify +from flask import jsonify, current_app from flask_classful import FlaskView @@ -9,4 +9,5 @@ class ConsumersView(FlaskView): def get(self): consumer_list = json.loads((redis_client.get("consumer_list") or b"{}").decode('utf-8')) + current_app.logger.warning(jsonify([v['ip'] for k, v in consumer_list.items()])) return jsonify([v['ip'] for k, v in consumer_list.items()])