Improve debug logging for bug 77342775.

The previous logging did not show the class loader
and space for `target_class`.

Test: Rely on TreeHugger.
Bug: 77342775
Bug: 77903751

(cherry picked from commit 2e3667ddabf98531290356bcb09929d481c70616)

Change-Id: I03e35688e0227eb74dcd59b99ce7bcad493d7847
1 file changed