There's no need to remove the default null log handler
This commit is contained in:
parent
e20616575d
commit
99ee59a38c
|
@ -243,7 +243,6 @@ by configuring the ``weasyprint`` logger object:
|
|||
|
||||
import logging
|
||||
logger = logging.getLogger('weasyprint')
|
||||
logger.handlers = [] # Remove the default stderr handler
|
||||
logger.addHandler(logging.FileHandler('/path/to/weasyprint.log'))
|
||||
|
||||
The ``INFO`` level is used to report the rendering progress. It is useful to
|
||||
|
|
Loading…
Reference in New Issue