diff options
| author | Lucas Lefèvre <lul@odoo.com> | 2021-02-23 09:05:27 +0000 |
|---|---|---|
| committer | Lucas Lefèvre <lul@odoo.com> | 2021-02-23 09:58:10 +0000 |
| commit | e0ae3c6270467985a4d56c902ef109ffc5513b13 (patch) | |
| tree | 8f7388720e420f976b43c549bc8c86034a7e18f0 /addons/mail | |
| parent | 7a42cc19492ada223678b6b67fc85fb121155e2b (diff) | |
[FIX] mail: Don't log unhandled notification
The `mail` module logs bus notifications it does not handle. However, some
notifications are not meant to be handled by `mail` and it's perfectly fine.
This commit removes the log to avoid useless noise in the console.
closes odoo/odoo#66661
Signed-off-by: Sébastien Theys (seb) <seb@odoo.com>
Diffstat (limited to 'addons/mail')
| -rw-r--r-- | addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js index 5457ed989ff..564337846e6 100644 --- a/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js +++ b/addons/mail/static/src/models/messaging_notification_handler/messaging_notification_handler.js @@ -87,9 +87,6 @@ function factory(dependencies) { return; } return this._handleNotificationPartner(Object.assign({}, message)); - default: - console.warn(`mail.messaging_notification_handler: Unhandled notification "${model}"`); - return; } }); await this.async(() => Promise.all(proms)); |
