request logs fix 2

This commit is contained in:
Łukasz Jędyk 2022-01-31 17:28:52 +01:00
parent 630e57d260
commit 43a8763c77
3 changed files with 3 additions and 7 deletions

View File

@ -28,11 +28,6 @@ def create_app():
app.register_blueprint(twitter, url_prefix='/twitter')
app.register_blueprint(campaign, url_prefix='/campaign')
@app.before_request
def log_request_info():
app.logger.debug('Headers: %s', request.headers)
app.logger.debug('Body: %s', request.get_data())
@app.route('/hello')
def hello():
return "Hello world!"

View File

@ -9,6 +9,9 @@ campaign = Blueprint('campaign', __name__)
@campaign.route('/campaign', methods=['GET'])
def get_twitter_campaigns():
print('Headers: %s', request.headers)
print('Body: %s', request.get_data())
twitter_campaigns = TwitterCampaign.query.all()
campaigns = []

View File

@ -1,5 +1,3 @@
import io
from setuptools import find_packages
from setuptools import setup