Updated logging to use error rather than exception (does not accept kwargs for extra data)