added logging to local app.log if NODE_ENV=prod