Only show the last path component when logging an error.