diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-10-03 07:04:01 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2019-10-03 07:04:01 +0200 |
commit | a6a7d86510469eacbd8d5a0cdc3bee5a098766e6 (patch) | |
tree | e4f6c8ac4d3353248fde59af495671544e6f8c14 /src | |
parent | 291f8a2a63582c423ddeb9fc4d8622e1744b684d (diff) |
Better debug of the duplicate types check
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/services/checks/duplicateTypes.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/services/checks/duplicateTypes.js b/src/services/checks/duplicateTypes.js index 2642aa82..64a5c762 100644 --- a/src/services/checks/duplicateTypes.js +++ b/src/services/checks/duplicateTypes.js @@ -44,6 +44,7 @@ export default { try { const props = contact.vCard.getAllProperties() props.forEach(prop => { + const icalString = prop.toICALString() // ['WORK', 'pref', 'pref'] => ['WORK', 'pref'] const param = prop.getParameter('type') const fixed = [...new Set(param)] @@ -51,6 +52,7 @@ export default { && Array.isArray(param) && param.join('') !== fixed.join('')) { prop.setParameter('type', fixed) + console.debug('Additional debug: duplicate types', { old: icalString, new: prop.toICALString() }) results = true } }) |