diff --git a/moulinette/authentication.py b/moulinette/authentication.py index e7b98917..12fd8d0c 100644 --- a/moulinette/authentication.py +++ b/moulinette/authentication.py @@ -1,5 +1,7 @@ # -*- coding: utf-8 -*- +import logging + from moulinette.core import MoulinetteError, MoulinetteAuthenticationError logger = logging.getLogger("moulinette.authenticator") diff --git a/moulinette/interfaces/__init__.py b/moulinette/interfaces/__init__.py index 27b9d4d6..dc33e276 100644 --- a/moulinette/interfaces/__init__.py +++ b/moulinette/interfaces/__init__.py @@ -6,7 +6,7 @@ import argparse import copy from collections import deque, OrderedDict -from moulinette import Moulinette, m18n +from moulinette import m18n from moulinette.core import MoulinetteError logger = logging.getLogger("moulinette.interface") diff --git a/moulinette/interfaces/api.py b/moulinette/interfaces/api.py index 2bfe5365..3e05e57f 100644 --- a/moulinette/interfaces/api.py +++ b/moulinette/interfaces/api.py @@ -83,7 +83,6 @@ class APIQueueHandler(logging.Handler): def emit(self, record): s_id = Session.get_infos()["id"] - sid = request.get_cookie("session.id") try: queue = self.queues[s_id] except KeyError: