Odoo Help


Is logging safe when using multiple workers?

Stéphane Bidoul
on 2/7/14, 11:55 AM 2,862 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

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.

How exactly does the --syslog parameter work?

Andre de Kock
on 7/11/17, 7:03 AM

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.


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)


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