Add proper failure messages for has_logged

[#73723814]