diff options
| author | Xavier Morel <xmo@odoo.com> | 2020-04-16 11:38:32 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-04-22 09:27:29 +0000 |
| commit | 3f2a18b0f2d7a1f8da9ce8038278a2cc7b108c55 (patch) | |
| tree | b4d8ffa92dc17a33099c60193b37e51761af84a9 /addons/web/static/src/js/views/basic/basic_controller.js | |
| parent | 92b007cb8956fbfd1eecd955d4946b37756fd726 (diff) | |
[FIX] core: improve warnings configuration
DeprecationWarning was configured as `once` which might be why I
missed some previously: `once` means the *filter* will only signal
once, meaning only one DeprecationWarning gets shown per run. Even if
there are 5 *completely different* warnings getting generated by the
codebase.
`default` should be more suitable, I think I'd originally
misunderstood it as "whatever the default is for this warning" but
what it *actually* means is "print once for each (module, lineno)".
An alternative could be `module` which would show the warning once per
module but wouldn't trigger from different warnings in the same module.
Diffstat (limited to 'addons/web/static/src/js/views/basic/basic_controller.js')
0 files changed, 0 insertions, 0 deletions
