Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
0x43
eBookHub-backend
Commits
a265db59
Commit
a265db59
authored
Mar 12, 2019
by
Patrick van der Leer
Browse files
SAFRS_LOGGER SILENCE YOU FOOL
parent
dca41b9a
Changes
1
Hide whitespace changes
Inline
Side-by-side
eBookHub/__init__.py
View file @
a265db59
...
...
@@ -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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment