logging: fix SetLevel