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
chenpangpang
transformers
Commits
78f4a0e7
Unverified
Commit
78f4a0e7
authored
Feb 09, 2021
by
Lysandre Debut
Committed by
GitHub
Feb 09, 2021
Browse files
Logging propagation (#10092)
* Enable propagation by default * Document enable/disable default handler
parent
63fddcf6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
docs/source/main_classes/logging.rst
docs/source/main_classes/logging.rst
+4
-0
src/transformers/utils/logging.py
src/transformers/utils/logging.py
+0
-1
No files found.
docs/source/main_classes/logging.rst
View file @
78f4a0e7
...
...
@@ -65,6 +65,10 @@ Other functions
.. autofunction:: transformers.logging.get_logger
.. autofunction:: transformers.logging.enable_default_handler
.. autofunction:: transformers.logging.disable_default_handler
.. autofunction:: transformers.logging.enable_explicit_format
.. autofunction:: transformers.logging.reset_format
src/transformers/utils/logging.py
View file @
78f4a0e7
...
...
@@ -85,7 +85,6 @@ def _configure_library_root_logger() -> None:
library_root_logger
=
_get_library_root_logger
()
library_root_logger
.
addHandler
(
_default_handler
)
library_root_logger
.
setLevel
(
_get_default_logging_level
())
library_root_logger
.
propagate
=
False
def
_reset_library_root_logger
()
->
None
:
...
...
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