Commit a265db59 authored by Patrick van der Leer's avatar Patrick van der Leer
Browse files

SAFRS_LOGGER SILENCE YOU FOOL

parent dca41b9a
......@@ -53,6 +53,9 @@ def create_api(app, host='localhost', port=5000, api_prefix=''):
safrs.DB = ext.db
api = SAFRSAPI(app, host='{}:{}'.format(host, port), prefix=api_prefix, description="eBookHUB backend API")
if app.testing:
from safrs import LOGGER as SAFRS_LOGGER
SAFRS_LOGGER.setLevel(logging.FATAL)
app.json_encoder = SAFRSJSONEncoder
api.expose_object(Author)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment