log environment when status is 500