Skip to content

Commit

Permalink
use logger instead of sout in data bound configurator (#126)
Browse files Browse the repository at this point in the history
logger can be turned off by config, but sout - can't
  • Loading branch information
lanwen authored and Ewelina Wilkosz committed Feb 23, 2018
1 parent 945a9bd commit 7bb962a
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -14,7 +14,6 @@
import java.lang.reflect.ParameterizedType;
import java.lang.reflect.Type;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
Expand Down Expand Up @@ -88,7 +87,7 @@ public Object configure(Object c) throws Exception {
if (configurator == null) throw new IllegalStateException("No configurator implementation to manage "+k);
args[i] = configurator.configure(value);
}
System.out.println("Setting " + target + "." + names[i] + " = " + value);
logger.info("Setting " + target + "." + names[i] + " = " + value);
} else if (t.isPrimitive()) {
args[i] = Defaults.defaultValue(t);
}
Expand Down

0 comments on commit 7bb962a

Please sign in to comment.