Added exception logging.
Forgot to remove the test exception.