use debug log instead of nslog.