fix wrongly call to logging api.