log: fix level/type retrieving from a standard thread