Handle pruning old format logs, Fixes #2265