Errors now logged to file