Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
agkyra
Commits
dc7b78fe
Commit
dc7b78fe
authored
May 04, 2015
by
Giorgos Korfiatis
Browse files
Don't set logger in syncer
parent
66c5ab7a
Changes
1
Hide whitespace changes
Inline
Side-by-side
agkyra/agkyra/syncer/syncer.py
View file @
dc7b78fe
...
...
@@ -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
))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment