logging: fix config lookup