format log warnings using JSON formatter

This commit is contained in:
Alan Hamlett 2015-04-08 13:15:53 -07:00
parent 96d8908396
commit 938a4004b4

View file

@ -101,4 +101,5 @@ def setup_logging(args, version):
)
handler.setFormatter(formatter)
logger.addHandler(handler)
logging.getLogger('py.warnings').addHandler(handler)
return logger