express error logging in prod/dev fixes