This repository has been archived on 2020-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
consumer-api/consumer_api/views/log_view.py

10 lines
298 B
Python
Raw Normal View History

2020-03-29 17:08:53 +02:00
from flask_classful import FlaskView
2020-03-30 16:36:33 +02:00
from flask import request, current_app, Response
2020-03-29 17:08:53 +02:00
class LogView(FlaskView):
def get(self):
2020-03-30 16:32:33 +02:00
remote_uuid = request.json['uuid']
current_app.logger.info(f"New message from {remote_uuid}: {request.message}")
2020-03-30 16:36:33 +02:00
return Response(status=204)