@@ -125,6 +125,7 @@ import IconClose from 'vue-material-design-icons/CloseOutline.vue'
125125import IconDetails from ' vue-material-design-icons/InformationOutline.vue'
126126import IconAdd from ' vue-material-design-icons/Plus.vue'
127127import IconReply from ' vue-material-design-icons/ReplyOutline.vue'
128+ import logger from ' ../logger.js'
128129import { fetchAvatarUrlMemoized } from ' ../service/AvatarService.js'
129130import { addToContact , autoCompleteByName , findMatches , newContact } from ' ../service/ContactIntegrationService.js'
130131
@@ -215,7 +216,7 @@ export default {
215216 try {
216217 this .avatarUrl = await fetchAvatarUrlMemoized (this .email )
217218 } catch (error) {
218- console .debug (' no avatar for ' + this .email , {
219+ logger .debug (' no avatar for ' + this .email , {
219220 error,
220221 })
221222 }
@@ -258,11 +259,11 @@ export default {
258259 onClickAddToContact () {
259260 if (this .selection === ContactSelectionStateEnum .new ) {
260261 if (this .newContactName !== ' ' ) {
261- newContact (this .newContactName .trim (), this .email ).then ((res ) => console .debug (' ContactIntegration' , res))
262+ newContact (this .newContactName .trim (), this .email ).then ((res ) => logger .debug (' ContactIntegration' , { res } ))
262263 }
263264 } else if (this .selection === ContactSelectionStateEnum .existing ) {
264265 if (this .selectedContact ) {
265- addToContact (this .selectedContact .id , this .email ).then ((res ) => console .debug (' ContactIntegration' , res))
266+ addToContact (this .selectedContact .id , this .email ).then ((res ) => logger .debug (' ContactIntegration' , { res } ))
266267 }
267268 }
268269 },
0 commit comments