diff options
author | gjoranv <gv@oath.com> | 2018-10-01 15:42:22 +0200 |
---|---|---|
committer | gjoranv <gv@oath.com> | 2018-10-01 15:42:22 +0200 |
commit | 3aacac544ad2f187c55d911fbb9cf6348738cb50 (patch) | |
tree | e1d5a5388f28cb2f1bafb6c97f4f5a461042ccc9 /container-di/src | |
parent | fbca8fc6115fbf924cc688d927c50d8e9d99a321 (diff) |
Add debug logging for component construction.
Diffstat (limited to 'container-di/src')
-rw-r--r-- | container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java b/container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java index fbc03a38682..dbe8ded550b 100644 --- a/container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java +++ b/container-di/src/main/java/com/yahoo/container/di/componentgraph/core/ComponentNode.java @@ -29,6 +29,7 @@ import java.util.stream.Collectors; import static com.yahoo.container.di.componentgraph.core.Exceptions.cutStackTraceAtConstructor; import static com.yahoo.container.di.componentgraph.core.Exceptions.removeStackTrace; import static com.yahoo.container.di.componentgraph.core.Keys.createKey; +import static com.yahoo.log.LogLevel.DEBUG; /** * @author Tony Vaagenes @@ -147,7 +148,9 @@ public class ComponentNode extends Node { Object instance; try { + log.log(DEBUG, "Constructing " + idAndType()); instance = constructor.newInstance(actualArguments.toArray()); + log.log(DEBUG, "Finished constructing " + idAndType()); } catch (InvocationTargetException | InstantiationException | IllegalAccessException e) { StackTraceElement dependencyInjectorMarker = new StackTraceElement("============= Dependency Injection =============", "newInstance", null, -1); |