Added logging

Added a little more info to the logger.exception message.