KAA-177: Refactor log buffer processing procedure to be more obvious.