Odoo Help

2

Is logging safe when using multiple workers?

By
Stéphane Bidoul
on 2/7/14, 11:55 AM 2,021 views

OpenERP uses the python logging module which has documentation saying that logging to a single file from multiple processes is not supported [1]. When running OpenERP with --workers > 1 we are in such as situation.

Is it known to be safe in OpenERP, and why?

If not, how do people usually solve this issue?

[1] not enough karma to post links: search for Logging Cookbook in python 2.7 documentation

3
Stéphane Bidoul
On 2/8/14, 7:26 AM

Answering my own question, I believe logging to file with --workers > 1 is not safe, and log records can be lost.

Running using --syslog and configuring the log file with rsyslog.conf is safe.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)

Stats

Asked: 2/7/14, 11:55 AM
Seen: 2021 times
Last updated: 8/16/16, 3:18 AM