Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
poezio
poezio
Commits
ae51999a
Commit
ae51999a
authored
Jul 30, 2016
by
Link Mauve
Browse files
Disable unused logging levels, makes logging.debug about 25 times faster.
parent
aed82a0e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
poezio/config.py
poezio/config.py
+3
-0
No files found.
poezio/config.py
View file @
ae51999a
...
...
@@ -620,6 +620,7 @@ def setup_logging():
'filename'
:
path
.
join
(
LOG_DIR
,
'errors.log'
),
'formatter'
:
'simple'
,
}
logging
.
disable
(
logging
.
WARNING
)
if
options
.
debug
:
LOGGING_CONFIG
[
'root'
][
'handlers'
].
append
(
'debug'
)
...
...
@@ -629,11 +630,13 @@ def setup_logging():
'filename'
:
options
.
debug
,
'formatter'
:
'simple'
,
}
logging
.
disable
(
logging
.
NOTSET
)
if
LOGGING_CONFIG
[
'root'
][
'handlers'
]:
logging
.
config
.
dictConfig
(
LOGGING_CONFIG
)
else
:
logging
.
disable
(
logging
.
ERROR
)
logging
.
basicConfig
(
level
=
logging
.
CRITICAL
)
global
log
...
...
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