Odoo Help


This community 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.


Is logging safe when using multiple workers?

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)


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