cubicweb/server/repository.py
branch3.24
changeset 11811 f09efeead7f9
parent 11774 51c160677afe
child 11819 a85b7a898e13
--- a/cubicweb/server/repository.py	Tue Jun 30 10:00:53 2015 +0200
+++ b/cubicweb/server/repository.py	Wed Nov 09 11:42:33 2016 +0100
@@ -32,6 +32,7 @@
 from itertools import chain
 from time import time, localtime, strftime
 from contextlib import contextmanager
+from logging import getLogger
 
 from six.moves import range, queue
 
@@ -45,6 +46,7 @@
                       UnknownEid, AuthenticationError, ExecutionError,
                       BadConnectionId, ValidationError, Unauthorized,
                       UniqueTogetherError, onevent, ViolatedConstraint)
+from cubicweb import set_log_methods
 from cubicweb import cwvreg, schema, server
 from cubicweb.server import ShuttingDown, utils, hook, querier, sources
 from cubicweb.server.session import Session, InternalManager
@@ -1032,7 +1034,4 @@
     # only defining here to prevent pylint from complaining
     info = warning = error = critical = exception = debug = lambda msg, *a, **kw: None
 
-
-from logging import getLogger
-from cubicweb import set_log_methods
 set_log_methods(Repository, getLogger('cubicweb.repository'))