OpusVL / docker-odoo-custom

An Odoo docker image with extended capabilities and fixes over the official one
Other
1 stars 1 forks source link

Odoo log redirection to STDERR doesn't seem to be working as we thought #10

Open Nick-OpusVL opened 5 years ago

Nick-OpusVL commented 5 years ago

Versions: 10.0

WIP-10.0-pg10-fix-preinstall-c-compiler

Getting this in output:

ERROR: couldn't create the logfile directory. Logging to the standard output.

suggesting that the --logfile=/dev/stderr isn't working quite as I thought.

Need to work out what we actually intend to do with the logs, and make sure we're using the right runes to ensure that in such a way it's not just appearing to work by coincidence.

Entered opusvl-entrypoint.py
Changing uid to odoo uid: 104
/entrypoint.sh ['-d', 'test', '-u', '[clipped for privacy]', '--test-enable', '--stop-after-init', '--max-cron-threads=0', '--addons-path=[clipped for privacy]/mnt/extra-addons-bundles/OCA_web,/mnt/extra-addons-bundles/OpusVL_odoo-manufacturing-extras,/mnt/extra-addons-bundles/intrastat-extrastat,/mnt/extra-addons-bundles/OCA_stock-logistics-warehouse,/mnt/extra-addons-bundles/OpusVL_odoo-product-extras,/mnt/extra-addons-bundles/muk-it_muk_web,/mnt/extra-addons-bundles/OCA_manufacture,/mnt/extra-addons-bundles/OpusVL_odoo-form-width-increase,/mnt/extra-addons-bundles/HtmlTreeWidget,/mnt/extra-addons-bundles/OCA_commission,/mnt/extra-addons-bundles/OpusVL_odoo-account-extras,/mnt/extra-addons-bundles/OpusVL_odoo-purchase-extras,/mnt/extra-addons-bundles/OCA_server-tools,/mnt/extra-addons-bundles/OpusVL_product-variant,/mnt/extra-addons-bundles/SerpentCS_Contributions', '--logfile=/dev/stderr']
ERROR: couldn't create the logfile directory. Logging to the standard output.
2019-02-12 14:26:46,980 12 INFO ? odoo: Odoo version 10.0-20181109
Nick-OpusVL commented 5 years ago

I believe stderr is the right place, because it's possible we could have command line tools that load the server and provide meaningful stuff on stdout.