From 09989bbe5aaf15dd2095418dc014e4517383b8da Mon Sep 17 00:00:00 2001 From: Adrian Cole Date: Sat, 14 May 2011 19:09:03 -0700 Subject: [PATCH] Issue 559: disabled overly verbose gson logger --- core/src/main/java/org/jclouds/json/config/GsonModule.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/src/main/java/org/jclouds/json/config/GsonModule.java b/core/src/main/java/org/jclouds/json/config/GsonModule.java index c56ff1e4d1..58a81d8918 100644 --- a/core/src/main/java/org/jclouds/json/config/GsonModule.java +++ b/core/src/main/java/org/jclouds/json/config/GsonModule.java @@ -22,6 +22,9 @@ import java.lang.reflect.Type; import java.util.Date; import java.util.List; import java.util.Map; +import java.util.Properties; +import java.util.logging.Level; +import java.util.logging.Logger; import javax.inject.Inject; import javax.inject.Singleton; @@ -67,6 +70,7 @@ public class GsonModule extends AbstractModule { ByteArrayAdapter byteArrayAdapter, SerializePropertiesDefaults propertiesAdapter, JsonAdapterBindings bindings) throws ClassNotFoundException, Exception { GsonBuilder builder = new GsonBuilder(); + Logger.getLogger("com.google.gson.ParameterizedTypeHandlerMap").setLevel(Level.OFF); builder.registerTypeHierarchyAdapter(Enum.class, new EnumTypeAdapterThatReturnsFromValue()); builder.registerTypeHierarchyAdapter(Map.class, new ObjectMapTypeAdapter()); builder.registerTypeAdapter(JsonBall.class, jsonAdapter);