Added traceLog function in registry.go

This will help us report server faults more accurately when communicating with the index/registry.

/cc @samalba