wal: prune repeative logging