osd/ClassHandler: improve error logging

Fixes: #9365 Signed-off-by: Sage Weil <sage@redhat.com>