thanks guys.

@Chetan right, it's on my todo list to remove such guards soon, as I had
already realized it's not much helpful in most of the cases.

@Julian I'll look for the non ASCII char (no idea how it got into the
commit though...).

Regards,
Tommaso

2015-02-19 11:30 GMT+01:00 Julian Reschke <[email protected]>:

> On 2015-02-19 06:11, Chetan Mehrotra wrote:
>
>> Hi Tommaso,
>>
>> On Wed, Feb 18, 2015 at 10:42 PM,  <[email protected]> wrote:
>>
>>> +            } else {
>>> +                if (log.isWarnEnabled()) {
>>> +                    log.warn("cannot create Solr query index as
>>> SolrServer {}Â is unreachable", solrServer);
>>> +                }
>>> +            }
>>>
>>
>> Minor suggestion - You can avoid doing a log check before doing actual
>> logging [1] if you use parameterized logging and parameters are direct
>> argument (i.e. not computed by some method call). That would reduce
>> the clutter in the code!
>>
>> Chetan Mehrotra
>> [1] http://stackoverflow.com/questions/8444266/even-with-
>> slf4j-should-you-guard-your-logging
>>
>
> ...and there seems to be a non-ASCII character in the commit...
>

Reply via email to