log rewrite finished