logfile is opened one time again