Skip to content

Commit

Permalink
Testing with wekzeug logger
Browse files Browse the repository at this point in the history
  • Loading branch information
tino097 committed Sep 28, 2018
1 parent 680448b commit 2ce2a22
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/cli/__init__.py
Expand Up @@ -13,7 +13,7 @@
from ckan.config.middleware import make_app


log = logging.getLogger(__name__)
log = logging.getLogger('werkzeug')
logging.basicConfig(level=logging.INFO, format='%(asctime)s %(levelname)s %(message)s')


Expand Down
2 changes: 1 addition & 1 deletion ckan/cli/db.py
Expand Up @@ -65,7 +65,7 @@ def updatedb(version=None):
@click.help_option(u'-h', u'--help')
def version():
u'''Return current version'''
log.info("Returning current DB version")
log.info("Returning current DB")
try:
from ckan.model import Session
ver = Session.execute(u'select version from '
Expand Down
3 changes: 3 additions & 0 deletions ckan/config/middleware/flask_app.py
Expand Up @@ -111,6 +111,7 @@ def make_flask_stack(conf, **app_conf):
app = DebuggedApplication(app, True)
app = app.app


# Use Beaker as the Flask session interface
class BeakerSessionInterface(SessionInterface):
def open_session(self, app, request):
Expand Down Expand Up @@ -269,6 +270,8 @@ def hello_world_post():

# Add a reference to the actual Flask app so it's easier to access
app._wsgi_app = flask_app
app.logger.propagate = True
# app.logger.propagate = True

return app

Expand Down

0 comments on commit 2ce2a22

Please sign in to comment.