format log warnings using JSON formatter
This commit is contained in:
parent
96d8908396
commit
938a4004b4
1 changed files with 1 additions and 0 deletions
|
@ -101,4 +101,5 @@ def setup_logging(args, version):
|
|||
)
|
||||
handler.setFormatter(formatter)
|
||||
logger.addHandler(handler)
|
||||
logging.getLogger('py.warnings').addHandler(handler)
|
||||
return logger
|
||||
|
|
Loading…
Reference in a new issue