Limit length of metadata decode debug output

Limit the size of the raw metadata that gets printed when debug logging is enabled.