Fix log name `undefined` on early startup