log names instead of ids for improved transparency
This commit is contained in:
parent
a309af40e9
commit
bbc9d9e7a8
@ -230,8 +230,9 @@ class SdrSource(ABC):
|
||||
return [self.getCommandMapper().map(self.getCommandValues())]
|
||||
|
||||
def activateProfile(self, profile_id):
|
||||
self.logger.debug("activating profile {0} for {1}".format(profile_id, self.getId()))
|
||||
try:
|
||||
profile_name = self.getProfiles()[profile_id]["name"]
|
||||
self.logger.debug("activating profile \"%s\" for \"%s\"", profile_name, self.getName())
|
||||
self.profileCarousel.switch(profile_id)
|
||||
except KeyError:
|
||||
self.logger.warning("invalid profile %s for sdr %s. ignoring", profile_id, self.getId())
|
||||
|
Loading…
Reference in New Issue
Block a user