Cleaning up how errors are logged
Um