change gather log logic