Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init file doesn't look odoo_config_logfile var #40

Open
dbertha opened this issue Sep 5, 2016 · 1 comment
Open

init file doesn't look odoo_config_logfile var #40

dbertha opened this issue Sep 5, 2016 · 1 comment

Comments

@dbertha
Copy link

dbertha commented Sep 5, 2016

In templates/odoo-9.0.init and templates/odoo-8.0.init, I suggest to replace this line :
LOGFILE={{ odoo_logdir }}/{{ odoo_service }}.log
by this line :
LOGFILE={{ odoo_config_logfile }}
Or even remove the line
Because otherwise the logfile parameter for the init daemon overwrite the logfile value in odoo config file

@sebalix
Copy link
Collaborator

sebalix commented Sep 5, 2016

Hi,

Yes, it was deliberate to be able to launch Odoo manually in interactive mode, with the logs on the standard output (no logfile option in the configuration file), and when running Odoo in daemon mode, the log file is then managed by the init script.

I agree it is not obvious, nor very "clean".
But regarding your fix, removing all the --logfile=$LOGFILE part in the script should be the way to go, then find solutions to be able to run Odoo in daemon mode + manually with logs on standard output, but sharing the same configuration file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants