Adds better logging to registration

For some reason empty strings are being returned by the XML formatter, this should help determine why.