ENH: refactor drop log private function to fix bug