Use LOG.exception in place of sys.exc_info.

Change-Id: I1c3ee12796388a8cd910529dcc743180bb975b49
Fixes: bug #1224570
Merge "Use LOG.exception in place of sys.exc_info."