Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I can't seem to get the same level of logging happening when I run odoo behind gunicorn. I want to see debug information, errors, warnings etc. The same level I see when I am just running the server standalone. But I can't see to get the right recipe in openerp-wsgi.py. If I set the loglevel to 'Debug' I *just* get debug output. But the messages I want or [ERRORS]. I may just be braindead or tired but I can't figure this out.
any help would be appreciated.
In cour config file you can specify exact log leves for every part od OE/odoo..
log_handler = :ALL,:DEBUG,openerp.orm:DEBUG,werkzeug:ERROR
# in V7 log_handler value is expected as a list : log_handler = [':DEBUG',':ERROR'...]
#options can be repeateed for same object, or can vary for different objects...
# no prefix before handler means all objects...
log_level = debug
# Accepted values: info, debug_rpc, warn, test, critical, debug_sql, error, debug, debug_rpc_answer, notset
You need to add it to the gunicorn configs:
gunicorn -b 0.0.0.0:8069 --workers=2 --access-logfile /var/log/odoo/gunicorn-access.log --error-logfile /var/log/odoo/gunicorn-error.log openerp-wsgi.
You can specify a log level also, refer to : http://docs.gunicorn.org/en/develop/configure.html#logging
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
|Asked: 7/17/14, 1:21 PM|
|Seen: 9685 times|
|Last updated: 3/16/15, 8:10 AM|