Technical Mailing lijst archieven

technical@mail.odoo.com

Avatar

Re: Odoo Log - Multi-Worker

door
Stefan Rijnhart
- 14-02-2019 17:22:52
On 14-02-19 17:15, Arlosyst wrote:
I think it can help but i am not sure what you meant.
Can you please provide the process?

You disable the Odoo logrotate option in the Odoo configuration file. Instead, you configure the system logrotate utility with a file /etc/logrotate.d/odoo

/var/log/odoo/odoo.log {
    missingok
    copytruncate
    dateext
    daily
    rotate 30
    create 0644 odoo odoo
    compress
}

Regards,
Stefan



On Thu, 14 Feb, 2019, 8:52 PM Stefan Rijnhart <stefan@opener.amsterdam wrote:
On 14-02-19 15:36, Arlosyst wrote:
> I know about logrotate, but it doesn't work in a multi-worker
> environment as the log gets lost

You can tell the logrotate utility to `copytruncate` so that the file
handler that the Odoo workers write to stays valid

Regards,
Stefan

-- 
Opener B.V. - Business solutions driven by open source collaboration

Stefan Rijnhart - Consultant/developer

mail: stefan@opener.am
tel: +31 (0) 20 3090 139
web: https://opener.am

_______________________________________________
Mailing-List: https://www.odoo.com/groups/technical-62
Post to: mailto:technical@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe

_______________________________________________
Mailing-List: https://www.odoo.com/groups/technical-62
Post to: mailto:technical@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe



-- 
Opener B.V. - Business solutions driven by open source collaboration

Stefan Rijnhart - Consultant/developer

mail: stefan@opener.am
tel: +31 (0) 20 3090 139
web: https://opener.am

Referentie