fix #2367: more intelligent initial logtype