Skip to Content
Menu
This question has been flagged
3575 Views

Hi,

I am trying to run Odoo with Uwsgi on Ubuntu 14.04.2

Python 2.7.6

Odoo 10

With following configuration, I am able to get standard log, even if I put some print statement, they are being logged, however, I am unable to get Traceback logs as they are printed in console when we run Odoo without WSGU

--

Traceback (most recent call last):
  File "/home/odoo/odoo/http.py", line 638, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/odoo/http.py", line 675, in dispatch
    result = self._call_function(**self.params)


uwsgi.ini

[uwsgi]

uid=odoo

gid=odoo

wsgi-file = /home/odoo/odoo/odoo-wsgi.py

enable-threads = true

single-interpreter = true

master          = true

vacuum          = true

processes       = 10

lazy-apps = true

socket          = /tmp/uwsgi.sock

chmod-socket    = 666

pidfile         = /tmp/uwsgi.pid

logto           = /var/log/odoo/uwsgi.log

--

odoo-wsgi.py


conf['logfile'] = '/var/log/odoo/odoo-server.log'

conf['log_handler'] = "[':INFO']"

conf['log_level'] = 'info'


Avatar
Discard