Fix logBeforeRouting to default it to false.