Workaround logd function