Call .toString() instead of .getMessage() in exception logging.