mirror of https://github.com/apache/jclouds.git
Issue 559: disabled overly verbose gson logger
This commit is contained in:
parent
3bb41050d0
commit
5253f3f7fb
|
@ -24,6 +24,8 @@ import java.util.Enumeration;
|
|||
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;
|
||||
|
@ -70,6 +72,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);
|
||||
|
|
Loading…
Reference in New Issue