File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -290,6 +290,8 @@ async def _handle__worker_init_request(self, request):
290
290
291
291
if DependencyManager .is_in_linux_consumption () \
292
292
and is_envvar_true (PYTHON_LOAD_FUNCTIONS_INIT ):
293
+ logger .info (
294
+ "PYTHON_LOAD_FUNCTIONS_INIT enabled. Importing azure functions" )
293
295
import azure .functions # NoQA
294
296
295
297
# loading bindings registry and saving results to a static
Original file line number Diff line number Diff line change @@ -210,17 +210,17 @@ def reload_azure_google_namespace_from_worker_deps(cls):
210
210
"""
211
211
# Reload package namespaces for customer's libraries
212
212
packages_to_reload = ['azure' , 'google' ]
213
+ packages_reloaded = []
213
214
for p in packages_to_reload :
214
215
try :
215
- logger .info ('Reloading %s module' , p )
216
216
importlib .reload (sys .modules [p ])
217
+ packages_reloaded .append (p )
217
218
except Exception as ex :
218
- logger .info ('Unable to reload %s: \n %s' , p , ex )
219
- logger .info ('Reloaded %s module' , p )
219
+ logger .warning ('Unable to reload %s: \n %s' , p , ex )
220
+
221
+ logger .info (f'Reloaded modules: { "," .join (packages_reloaded )} ' )
220
222
221
223
# Reload azure.functions to give user package precedence
222
- logger .info ('Reloading azure.functions module at %s' ,
223
- inspect .getfile (sys .modules ['azure.functions' ]))
224
224
try :
225
225
importlib .reload (sys .modules ['azure.functions' ])
226
226
logger .info ('Reloaded azure.functions module now at %s' ,
You can’t perform that action at this time.
0 commit comments