Fix exception logging.

Exception objects do not have msg attributes they have message
attributes. Use message instead of msg. Also use logger.warning()
instead of logger.warn() to be consistent with python documentation.

Change-Id: I49be960202f3fa1add19f3068ff824ae9d7f8314
Merge "Fix exception logging."