[minor] Added checks if logs is enabled to the voting takes this in to account