Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
better import + add new logging system from hapic
Browse files Browse the repository at this point in the history
  • Loading branch information
inkhey authored and buxx committed Sep 28, 2018
1 parent f9f98ec commit a615b06
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 5 deletions.
7 changes: 6 additions & 1 deletion backend/development.ini.sample
Expand Up @@ -257,7 +257,7 @@ sqlalchemy.url = sqlite:///%(here)s/tracim.sqlite
###

[loggers]
keys = root, tracim, sqlalchemy, alembic
keys = root, tracim, sqlalchemy, alembic, hapic

[handlers]
keys = console
Expand Down Expand Up @@ -287,6 +287,11 @@ level = INFO
handlers =
qualname = alembic

[logger_hapic]
level = DEBUG
handlers =
qualname = hapic

[handler_console]
class = StreamHandler
args = (sys.stderr,)
Expand Down
2 changes: 1 addition & 1 deletion backend/requirements.txt
Expand Up @@ -18,7 +18,7 @@ email-reply-parser==0.5.9
filedepot==0.5.2
filelock==3.0.8
freezegun==0.3.10
hapic==0.52
hapic==0.53
hapic-apispec==0.37.0
hupper==1.3
idna==2.7
Expand Down
2 changes: 1 addition & 1 deletion backend/setup.py
Expand Up @@ -24,7 +24,7 @@
'zope.sqlalchemy',
'alembic',
# API
'hapic>=0.52',
'hapic>=0.53',
'marshmallow <3.0.0a1,>2.0.0',
# CLI
'cliff',
Expand Down
2 changes: 1 addition & 1 deletion backend/tracim_backend/views/core_api/user_controller.py
Expand Up @@ -7,7 +7,7 @@
except ImportError:
from http import client as HTTPStatus

from tracim_backend import hapic
from tracim_backend.extensions import hapic
from tracim_backend.lib.utils.request import TracimRequest
from tracim_backend.models import Group
from tracim_backend.lib.core.group import GroupApi
Expand Down
Expand Up @@ -5,7 +5,7 @@
from pyramid.httpexceptions import HTTPFound

from tracim_backend import BASE_API_V2
from tracim_backend import hapic
from tracim_backend.extensions import hapic
from tracim_backend.app_models.contents import CONTENT_TYPES
from tracim_backend.exceptions import ContentLabelAlreadyUsedHere
from tracim_backend.exceptions import ContentNotFound
Expand Down

0 comments on commit a615b06

Please sign in to comment.