Commits

Ali Afshar  committed 90f50d1 Merge

merged

  • Participants
  • Parent commits ecfbc49, 2a831ee

Comments (0)

Files changed (2)

File glashammer/application.py

 from glashammer.utils import local, local_manager, EventManager, emit_event, \
     url_for, sibpath, Request
 
-from glashammer.utils.log import debug, warning
-
 
 
 def default_setup_func(app):

File glashammer/utils/log.py

 
-from logging import getLogger, debug as ldebug, \
-    info as linfo, warning as lwarning, error as lerror
 
 
-root_logger = getLogger('')
-
 def add_log_handler(handler):
+    root_logger = getLogger('')
     root_logger.addHandler(handler)
 
 def debug(msg):
-    ldebug(msg)
-
     # Racy
     from glashammer.utils import emit_event
     emit_event('log', 'debug', msg)
 
 
 def info(msg):
-    linfo(msg)
-
     # Racy
     from glashammer.utils import emit_event
     emit_event('log', 'debug', msg)
 
 
 def warning(msg):
-    lwarning(msg)
-
     # Racy
     from glashammer.utils import emit_event
     emit_event('log', 'warning', msg)
 
 
 def error(msg):
-    lerror(msg)
-
     # Racy
     from glashammer.utils import emit_event
     emit_event('log', 'error', msg)