@@ -101,7 +101,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
101101 log . debug ( `Creating attribute: ${ attribute . name } ` , this . exportConfig ?. context ) ;
102102 const data = await this . apiClient . post < AttributeStruct > ( '/attributes' , attribute ) ;
103103 const result = ( await this . handleVariantAPIRes ( data ) ) as AttributeStruct ;
104- log . info ( `Attribute created successfully: ${ result ?. uid } ` , this . exportConfig ?. context ) ;
104+ log . info ( `Attribute created successfully: ${ result ?. name || result ?. uid } ` , this . exportConfig ?. context ) ;
105105 return result ;
106106 }
107107
@@ -110,7 +110,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
110110 const getExperiencesEndPoint = `/experiences` ;
111111 const data = await this . apiClient . get ( getExperiencesEndPoint ) ;
112112 const result = ( await this . handleVariantAPIRes ( data ) ) as ExperienceStruct [ ] ;
113- log . info ( `Fetched ${ result ?. length || 0 } experiences` , this . exportConfig ?. context ) ;
113+ log . debug ( `Fetched ${ result ?. length || 0 } experiences` , this . exportConfig ?. context ) ;
114114 return result ;
115115 }
116116
@@ -122,7 +122,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
122122 }
123123 const data = await this . apiClient . get ( getExperiencesEndPoint ) ;
124124 const result = ( await this . handleVariantAPIRes ( data ) ) as ExperienceStruct ;
125- log . info ( `Experience fetched successfully: ${ result ?. uid } ` , this . exportConfig ?. context ) ;
125+ log . debug ( `Experience fetched successfully: ${ result ?. uid } ` , this . exportConfig ?. context ) ;
126126 return result ;
127127 }
128128
@@ -189,7 +189,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
189189 const updateVariantGroupEndPoint = `/variant_groups/${ input . uid } ` ;
190190 const data = await this . cmaAPIClient . put ( updateVariantGroupEndPoint , input ) ;
191191 const result = ( await this . handleVariantAPIRes ( data ) ) as VariantGroup ;
192- log . debug ( `Variant group updated successfully: ${ input . uid } ` , this . exportConfig ?. context ) ;
192+ log . debug ( `Variant group updated successfully: ${ input ? .uid } ` , this . exportConfig ?. context ) ;
193193 return result ;
194194 } else {
195195 log . debug ( 'CMA API client not available for variant group update' , this . exportConfig ?. context ) ;
@@ -216,7 +216,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
216216 log . debug ( 'Fetching audiences from personalization API' , this . exportConfig ?. context ) ;
217217 const data = await this . apiClient . get < AudienceStruct > ( '/audiences' ) ;
218218 const result = ( await this . handleVariantAPIRes ( data ) ) as AudienceStruct [ ] ;
219- log . info ( `Fetched ${ result ?. length || 0 } audiences` , this . exportConfig ?. context ) ;
219+ log . debug ( `Fetched ${ result ?. length || 0 } audiences` , this . exportConfig ?. context ) ;
220220 return result ;
221221 }
222222
@@ -240,7 +240,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
240240 log . debug ( `Creating audience: ${ audience . name } ` , this . exportConfig ?. context ) ;
241241 const data = await this . apiClient . post < AudienceStruct > ( '/audiences' , audience ) ;
242242 const result = ( await this . handleVariantAPIRes ( data ) ) as AudienceStruct ;
243- log . info ( `Audience created successfully: ${ result ?. uid } ` , this . exportConfig ?. context ) ;
243+ log . info ( `Audience created successfully: ${ result ?. name || result ?. uid } ` , this . exportConfig ?. context ) ;
244244 return result ;
245245 }
246246
@@ -256,7 +256,7 @@ export class PersonalizationAdapter<T> extends AdapterHelper<T, HttpClient> impl
256256 log . debug ( `Creating experience: ${ experience . name } ` , this . exportConfig ?. context ) ;
257257 const data = await this . apiClient . post < ExperienceStruct > ( '/experiences' , experience ) ;
258258 const result = ( await this . handleVariantAPIRes ( data ) ) as ExperienceStruct ;
259- log . info ( `Experience created successfully: ${ result ?. uid } ` , this . exportConfig ?. context ) ;
259+ log . info ( `Experience created successfully: ${ result ?. name || result ?. uid } ` , this . exportConfig ?. context ) ;
260260 return result ;
261261 }
262262
0 commit comments