Commit dc7b78fe authored by Giorgos Korfiatis's avatar Giorgos Korfiatis
Browse files

Don't set logger in syncer

parent 66c5ab7a
......@@ -11,17 +11,6 @@ from agkyra.syncer.pithos_client import PithosFileClient
from agkyra.syncer import messaging, utils
logger = logging.getLogger(__name__)
logging.basicConfig(level=logging.INFO)
class IgnoreKamakiInfo(logging.Filter):
def filter(self, record):
return not (record.name.startswith('kamaki') and
record.levelno <= logging.INFO)
for handler in logging.root.handlers:
handler.addFilter(IgnoreKamakiInfo())
exclude_regexes = ["\.#", "\.~", "~\$", "~.*\.tmp$", "\..*\.swp$"]
exclude_pattern = re.compile('|'.join(exclude_regexes))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment