Skip to content

Commit

Permalink
déplacement logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Juliettejns committed Sep 11, 2024
1 parent 11caf39 commit 668fd90
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 4 additions & 0 deletions app/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import logging
from flask import Flask, g

from flask_compress import Compress
Expand Down Expand Up @@ -64,6 +65,9 @@ def _set_sqlite_case_insensitive_pragma(dbapi_con, connection_record):
md = Markdown(app, safe_mode=True)
babel.init_app(app, locale_selector=get_locale)

logging.basicConfig(filename='./pyrrha_corpus_creation.log', level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(name)s %(message)s')

# Register Jinja template functions
from .main import main as main_blueprint
app.register_blueprint(main_blueprint)
Expand Down
2 changes: 0 additions & 2 deletions app/main/views/corpus.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,6 @@ def _get_available():
def corpus_new():
""" Register a new corpus
"""
logging.basicConfig(filename='./pyrrha_corpus_creation.log', level=logging.DEBUG,
format='%(asctime)s %(levelname)s %(name)s %(message)s')
logger = logging.getLogger(__name__)
lemmatizers = current_app.config.get("LEMMATIZERS", [])

Expand Down

0 comments on commit 668fd90

Please sign in to comment.