restore log renaming if possible on log rotation