This commit is contained in:
		@@ -8,7 +8,6 @@ from flask_classful import FlaskView
 | 
			
		||||
class ConsumersView(FlaskView):
 | 
			
		||||
 | 
			
		||||
    def get(self):
 | 
			
		||||
 | 
			
		||||
        keys = redis_client.keys('consumer_*')
 | 
			
		||||
 | 
			
		||||
        list_of_customer_ips = []
 | 
			
		||||
 
 | 
			
		||||
@@ -19,7 +19,8 @@ class LogView(FlaskView):
 | 
			
		||||
        if not last_known_remote_ip:
 | 
			
		||||
            current_app.logger.info(f"New producer {remote_uuid} at {remote_ip}")
 | 
			
		||||
        elif last_known_remote_ip != remote_ip:
 | 
			
		||||
            current_app.logger.info(f"IP address of producer {remote_uuid} have changed: {last_known_remote_ip} -> {remote_ip}")
 | 
			
		||||
            current_app.logger.info(
 | 
			
		||||
                f"IP address of producer {remote_uuid} have changed: {last_known_remote_ip} -> {remote_ip}")
 | 
			
		||||
 | 
			
		||||
        # update expirity
 | 
			
		||||
        redis_client.set(prod_key, remote_ip.encode('utf-8'))
 | 
			
		||||
@@ -28,4 +29,4 @@ class LogView(FlaskView):
 | 
			
		||||
        # print out message
 | 
			
		||||
        current_app.logger.info(f"New message: {request.json['message']}")
 | 
			
		||||
 | 
			
		||||
        return Response(status=204)
 | 
			
		||||
        return Response(status = 204)
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user