@@ -424,7 +424,7 @@ def create_signer(
424
424
"signer" : signer ,
425
425
"client_kwargs" : client_kwargs ,
426
426
}
427
- logger .info (f"Using authentication signer type { type (signer )} ." )
427
+ logger .debug (f"Using authentication signer type { type (signer )} ." )
428
428
return signer_dict
429
429
else :
430
430
signer_args = dict (
@@ -492,7 +492,7 @@ def default_signer(client_kwargs: Optional[Dict] = None) -> Dict:
492
492
** (client_kwargs or {}),
493
493
},
494
494
}
495
- logger .info (f"Using authentication signer type { type (signer )} ." )
495
+ logger .debug (f"Using authentication signer type { type (signer )} ." )
496
496
return signer_dict
497
497
else :
498
498
signer_args = dict (
@@ -621,7 +621,7 @@ def create_signer(self) -> Dict:
621
621
)
622
622
623
623
oci .config .validate_config (configuration )
624
- logger .info (f"Using 'api_key' authentication." )
624
+ logger .debug (f"Using 'api_key' authentication." )
625
625
return {
626
626
"config" : configuration ,
627
627
"signer" : oci .signer .Signer (
@@ -684,7 +684,7 @@ def create_signer(self) -> Dict:
684
684
"signer" : oci .auth .signers .get_resource_principals_signer (),
685
685
"client_kwargs" : self .client_kwargs ,
686
686
}
687
- logger .info (f"Using 'resource_principal' authentication." )
687
+ logger .debug (f"Using 'resource_principal' authentication." )
688
688
return signer_dict
689
689
690
690
@staticmethod
@@ -747,7 +747,7 @@ def create_signer(self) -> Dict:
747
747
),
748
748
"client_kwargs" : self .client_kwargs ,
749
749
}
750
- logger .info (f"Using 'instance_principal' authentication." )
750
+ logger .debug (f"Using 'instance_principal' authentication." )
751
751
return signer_dict
752
752
753
753
@@ -814,7 +814,7 @@ def create_signer(self) -> Dict:
814
814
oci .config .from_file (self .oci_config_location , self .oci_key_profile )
815
815
)
816
816
817
- logger .info (f"Using 'security_token' authentication." )
817
+ logger .debug (f"Using 'security_token' authentication." )
818
818
819
819
for parameter in self .SECURITY_TOKEN_REQUIRED :
820
820
if parameter not in configuration :
@@ -883,7 +883,7 @@ def _validate_and_refresh_token(self, configuration: Dict[str, Any]):
883
883
)
884
884
885
885
date_time = datetime .fromtimestamp (time_expired ).strftime ("%Y-%m-%d %H:%M:%S" )
886
- logger .info (f"Session is valid until { date_time } ." )
886
+ logger .debug (f"Session is valid until { date_time } ." )
887
887
888
888
def _read_security_token_file (self , security_token_file : str ) -> str :
889
889
"""Reads security token from file.
@@ -1020,10 +1020,10 @@ def __enter__(self):
1020
1020
"""
1021
1021
if self .profile :
1022
1022
ads .set_auth (auth = AuthType .API_KEY , profile = self .profile )
1023
- logger .info (f"OCI profile set to { self .profile } " )
1023
+ logger .debug (f"OCI profile set to { self .profile } " )
1024
1024
else :
1025
1025
ads .set_auth (auth = AuthType .RESOURCE_PRINCIPAL )
1026
- logger .info (f"OCI auth set to resource principal" )
1026
+ logger .debug (f"OCI auth set to resource principal" )
1027
1027
return self
1028
1028
1029
1029
def __exit__ (self , exc_type , exc_val , exc_tb ):
0 commit comments