Fix logging during savestate.