Use logging system for python warnings
This commit is contained in:
parent
da2d8e1048
commit
c5230dc347
@ -105,6 +105,8 @@ def init_log(args):
|
|||||||
root.addHandler(ram_handler)
|
root.addHandler(ram_handler)
|
||||||
root.setLevel(logging.NOTSET)
|
root.setLevel(logging.NOTSET)
|
||||||
|
|
||||||
|
logging.captureWarnings(True)
|
||||||
|
|
||||||
|
|
||||||
class LogFilter(logging.Filter):
|
class LogFilter(logging.Filter):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user