only log to file with production environment