Tweak profiles logging to debug level (#5194)

This commit is contained in:
Roy Nieterau 2023-06-27 11:55:10 +02:00 committed by GitHub
parent 83242487fd
commit 87e6704b1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -167,7 +167,7 @@ def filter_profiles(profiles_data, key_values, keys_order=None, logger=None):
for item in key_values.items() for item in key_values.items()
]) ])
logger.info( logger.debug(
"Looking for matching profile for: {}".format(log_parts) "Looking for matching profile for: {}".format(log_parts)
) )
@ -209,19 +209,19 @@ def filter_profiles(profiles_data, key_values, keys_order=None, logger=None):
matching_profiles.append((profile, profile_scores)) matching_profiles.append((profile, profile_scores))
if not matching_profiles: if not matching_profiles:
logger.info( logger.debug(
"None of profiles match your setup. {}".format(log_parts) "None of profiles match your setup. {}".format(log_parts)
) )
return None return None
if len(matching_profiles) > 1: if len(matching_profiles) > 1:
logger.info( logger.debug(
"More than one profile match your setup. {}".format(log_parts) "More than one profile match your setup. {}".format(log_parts)
) )
profile = _profile_exclusion(matching_profiles, logger) profile = _profile_exclusion(matching_profiles, logger)
if profile: if profile:
logger.info( logger.debug(
"Profile selected: {}".format(profile) "Profile selected: {}".format(profile)
) )
return profile return profile