fix endpoint logging