Revert "move to static LOG"
This reverts commit e75b996e60.
Change is being reverted because we can't actually use a static LOG
object if we expect setup_logging to do the right thing at runtime.
Python logging will load logging objects at import time using the static
LOG object before setup_logging can run otherwise.
Conflicts:
elastic_recheck/bot.py
elastic_recheck/elasticRecheck.py
Change-Id: I582c7e9c9b3c2ccab6a695bfba00a61f7c0a04a9
This commit is contained in:
@@ -18,12 +18,9 @@ A set of utility methods to load queries for elastic recheck.
|
||||
"""
|
||||
|
||||
import glob
|
||||
import logging
|
||||
import os.path
|
||||
import yaml
|
||||
|
||||
LOG = logging.getLogger('recheckwatchbot')
|
||||
|
||||
|
||||
def load(directory='queries'):
|
||||
"""Load queries from a set of yaml files in a directory."""
|
||||
|
||||
Reference in New Issue
Block a user