@@ -357,15 +357,15 @@ def _init_secret_token_map(model_context):
357
357
358
358
locations = os .environ .get (_secret_dirs_variable , _secret_dirs_default )
359
359
for dir in locations .split ("," ):
360
- if not os .path .isdir (dir ):
361
- # log at WARN or INFO, but no exception is thrown
362
- log_method ('WLSDPLY-01738' , _secret_dirs_variable , dir , class_name = _class_name , method_name = method_name )
363
- continue
364
-
365
- for subdir_name in os .listdir (dir ):
366
- subdir_path = os .path .join (dir , subdir_name )
367
- if os .path .isdir (subdir_path ):
368
- _add_file_secrets_to_map (subdir_path , subdir_name , model_context )
360
+ if not os .path .isdir (dir ):
361
+ # log at INFO, no exception is thrown
362
+ _logger . info ('WLSDPLY-01738' , _secret_dirs_variable , dir , class_name = _class_name , method_name = method_name )
363
+ continue
364
+
365
+ for subdir_name in os .listdir (dir ):
366
+ subdir_path = os .path .join (dir , subdir_name )
367
+ if os .path .isdir (subdir_path ):
368
+ _add_file_secrets_to_map (subdir_path , subdir_name , model_context )
369
369
370
370
# add name/key pairs for files in directories assigned in WDT_MODEL_SECRETS_NAME_DIR_PAIRS.
371
371
# these pairs will override if they were previously added as sub-directory pairs.
0 commit comments