File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/com/microsoft/azure/functions/worker/broker Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ public class JavaFunctionBroker {
39
39
private volatile InvocationChainFactory invocationChainFactory ;
40
40
private volatile FunctionInstanceInjector functionInstanceInjector ;
41
41
42
- private static FunctionInstanceInjector newInstanceInjector () {
42
+ private FunctionInstanceInjector newInstanceInjector () {
43
43
return new FunctionInstanceInjector () {
44
44
@ Override
45
45
public <T > T getInstance (Class <T > functionClass ) throws Exception {
@@ -94,13 +94,13 @@ private void initializeFunctionInstanceInjector() {
94
94
Iterator <FunctionInstanceInjector > iterator = ServiceLoader .load (FunctionInstanceInjector .class ).iterator ();
95
95
if (iterator .hasNext ()) {
96
96
this .functionInstanceInjector = iterator .next ();
97
- WorkerLogManager .getSystemLogger ().log ( Level . INFO , "Load function instance injector: {0} " + this .functionInstanceInjector .getClass ().getName ());
97
+ WorkerLogManager .getSystemLogger ().info ( "Load function instance injector: " + this .functionInstanceInjector .getClass ().getName ());
98
98
if (iterator .hasNext ()){
99
99
WorkerLogManager .getSystemLogger ().warning ("Customer function app has multiple FunctionInstanceInjector implementations." );
100
100
throw new RuntimeException ("Customer function app has multiple FunctionInstanceInjector implementations" );
101
101
}
102
102
}else {
103
- this .functionInstanceInjector = JavaFunctionBroker . newInstanceInjector ();
103
+ this .functionInstanceInjector = newInstanceInjector ();
104
104
WorkerLogManager .getSystemLogger ().info ("Didn't find any function instance injector, creating function class instance every invocation." );
105
105
}
106
106
} finally {
You can’t perform that action at this time.
0 commit comments