From dc7b78fe33331d60a09ae10fa0073749263d017b Mon Sep 17 00:00:00 2001 From: Giorgos Korfiatis <gkorf@grnet.gr> Date: Mon, 4 May 2015 16:28:16 +0300 Subject: [PATCH] Don't set logger in syncer --- agkyra/agkyra/syncer/syncer.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/agkyra/agkyra/syncer/syncer.py b/agkyra/agkyra/syncer/syncer.py index 5e9b8f3..af52f8d 100644 --- a/agkyra/agkyra/syncer/syncer.py +++ b/agkyra/agkyra/syncer/syncer.py @@ -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)) -- GitLab