restore log writing