The url::Url type is awkward for our use because it has domain as an optional field, and when logging it prints individual url components instead of the full url as a string. We should add a wrapper type like the following to workaround these issues.
This is too much effort considering that there are only a handful of places where we need to check for url.domain() being None. And better debug printing is already handled in ObjectId.
The
url::Url
type is awkward for our use because it has domain as an optional field, and when logging it prints individual url components instead of the full url as a string. We should add a wrapper type like the following to workaround these issues.Posting this as an issue instead of PR because now is not a good time for breaking changes.