It would probably be better to have a clear separation between the call to `getSolrUrl()` and the creation of a log.