check logging levels before extracting the caller info
fixes #455