(Minor cleanup) Wrap log statements with level check 

As arguments to a method are always evaluated before method invocation, this avoids string concatenation unless debug level is specified.