@@ -88,15 +88,20 @@ def to_internal(self, attribute_profile, external_dict):
88
88
89
89
for internal_attribute_name , mapping in self .from_internal_attributes .items ():
90
90
if attribute_profile not in mapping :
91
- logger .debug ("no attribute mapping found for the attribute profile '%s'" , attribute_profile )
91
+ logger .debug ("no attribute mapping found for internal attribute '%s' the attribute profile '%s'" % (
92
+ internal_attribute_name , attribute_profile ))
92
93
# skip this internal attribute if we have no mapping in the specified profile
93
94
continue
94
95
95
96
external_attribute_name = mapping [attribute_profile ]
96
97
attribute_values = self ._collate_attribute_values_by_priority_order (external_attribute_name ,
97
98
external_dict )
98
99
if attribute_values : # Only insert key if it has some values
100
+ logger .debug ("backend attribute '%s' mapped to %s" % (external_attribute_name ,
101
+ internal_attribute_name ))
99
102
internal_dict [internal_attribute_name ] = attribute_values
103
+ else :
104
+ logger .debug ("skipped backend attribute '%s': no value found" , external_attribute_name )
100
105
101
106
internal_dict = self ._handle_template_attributes (attribute_profile , internal_dict )
102
107
return internal_dict
@@ -181,12 +186,16 @@ def from_internal(self, attribute_profile, internal_dict):
181
186
182
187
if attribute_profile not in attribute_mapping :
183
188
# skip this internal attribute if we have no mapping in the specified profile
184
- logger .debug ("no attribute mapping found for the attribute profile '%s'" , attribute_profile )
189
+ logger .debug ("no mapping found for '%s' in attribute profile '%s'" %
190
+ (internal_attribute_name ,
191
+ attribute_profile ))
185
192
continue
186
193
187
194
external_attribute_names = self .from_internal_attributes [internal_attribute_name ][attribute_profile ]
188
195
# select the first attribute name
189
196
external_attribute_name = external_attribute_names [0 ]
197
+ logger .debug ("frontend attribute %s mapped from %s" % (external_attribute_name ,
198
+ internal_attribute_name ))
190
199
191
200
if self .separator in external_attribute_name :
192
201
nested_attribute_names = external_attribute_name .split (self .separator )
0 commit comments