initializing logger earlier in restart script