diff options
| author | Xavier Morel <xmo@odoo.com> | 2019-12-18 12:40:52 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2020-01-21 06:56:15 +0000 |
| commit | b66a7feb0f468e263b507929237ae6c93f3ee4cd (patch) | |
| tree | d71773a99e7fe1f774fa2023873b51f8adf46d0e /addons/web/static/src/js/fields | |
| parent | 7b13ce17c2019d5e32241c7ccbc40df85d927b9e (diff) | |
[IMP] core: strip log_handler items before splitting them
Allows better formatted and commented log_handler items in
configuration files: configparser allows multiline values and
interspersed comments (stripping out comment lines), but while it
removes indent it leaves the linebreaks, so e.g.
foo =
bar,
# qux
quux
when parsed and split on "," results in `['\nbar', '\nquux']` which is
obviously an issue for logging (as it assumes the leading `\n` is part
of the logger name proper).
Since log_handler items can be fairly long and are not necessarily
self-descriptive as to *why* they were selected for re-configuration,
allowing one per line & comments is helpful.
Diffstat (limited to 'addons/web/static/src/js/fields')
0 files changed, 0 insertions, 0 deletions
