log clean up