Skip to content
Snippets Groups Projects
Commit f3c96aa2 authored by Christophe Monniez's avatar Christophe Monniez
Browse files

[FIX] core: log full path in ir_logging when using postgresql handler


When the PostgreSQLHandler is used to store some logs in the ir_logging
table of a database, the log record pathname is truncated to keep only
the relevant part of the path. In some circumstances, the path is
wrongly truncated, leading to totally invalid paths.

e.g.: When using an addon-path like `/data/build/enteprise` the removed
part correspond to the length of `/data/build/odoo/`. The resulting path
is `prise/....`.

With this commit, the full path is kept.

This commit is mainly a fix for the runbot logs and should not have an
impact on existing databases.

closes odoo/odoo#50148

Signed-off-by: default avatarChristophe Monniez (moc) <moc@odoo.com>
parent cade4efa
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment