changed adding --log-file argument: only if not --dry-run