SCM-538 add better logging for such cases