Mercurial > dive4elements > river
comparison gwt-client/src/main/java/org/dive4elements/river/client/server/CollectionHelper.java @ 6141:63975955ec61
Guard the collection describe debug output
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Fri, 31 May 2013 15:43:14 +0200 |
parents | 804e50149d6a |
children | 238fc722f87a |
comparison
equal
deleted
inserted
replaced
6140:60b94dec104b | 6141:63975955ec61 |
---|---|
401 * @return a Collection with CollectionItems. | 401 * @return a Collection with CollectionItems. |
402 */ | 402 */ |
403 public static Collection parseCollection(Document description) { | 403 public static Collection parseCollection(Document description) { |
404 logger.debug("CollectionHelper.parseCollection"); | 404 logger.debug("CollectionHelper.parseCollection"); |
405 | 405 |
406 logger.debug(XMLUtils.toString(description)); | 406 if (logger.isDebugEnabled()) { |
407 logger.debug(XMLUtils.toString(description)); | |
408 } | |
407 | 409 |
408 if (description == null) { | 410 if (description == null) { |
409 logger.warn("The DESCRIBE of the Collection is null!"); | 411 logger.warn("The DESCRIBE of the Collection is null!"); |
410 return null; | 412 return null; |
411 } | 413 } |