Switched the new error output to use logging