{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/3852","labels_url":"https://api.github.com/repos/odoo/odoo/issues/3852/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/3852/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/3852/events","html_url":"https://github.com/odoo/odoo/issues/3852","id":49961724,"number":3852,"title":"[all] Can't disable logfile when running from command line","user":{"login":"dannyadair","id":699074,"avatar_url":"https://avatars.githubusercontent.com/u/699074?v=3","gravatar_id":"","url":"https://api.github.com/users/dannyadair","html_url":"https://github.com/dannyadair","followers_url":"https://api.github.com/users/dannyadair/followers","following_url":"https://api.github.com/users/dannyadair/following{/other_user}","gists_url":"https://api.github.com/users/dannyadair/gists{/gist_id}","starred_url":"https://api.github.com/users/dannyadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannyadair/subscriptions","organizations_url":"https://api.github.com/users/dannyadair/orgs","repos_url":"https://api.github.com/users/dannyadair/repos","events_url":"https://api.github.com/users/dannyadair/events{/privacy}","received_events_url":"https://api.github.com/users/dannyadair/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2014-11-25T00:28:29Z","updated_at":"2015-03-09T06:02:39Z","closed_at":null,"body":"https://github.com/odoo/odoo/blob/8.0/openerp/tools/config.py#L386\r\n\r\nFor the 'logfile' configuration parameter, the strings 'None' and 'False' are converted to a boolean, but the following block reads the command line parameter overrides as-is. That means\r\n\r\n    --logfile=None\r\n\r\nwill create a file \"None\" and log to it.\r\n\r\nI believe the logfile/pidfile conversions need to be done after the command line parameter overrides.\r\n\r\nSee also https://www.odoo.com/forum/help-1/question/disable-logfile-from-command-line-68282"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/77804512","html_url":"https://github.com/odoo/odoo/issues/3852#issuecomment-77804512","issue_url":"https://api.github.com/repos/odoo/odoo/issues/3852","id":77804512,"user":{"login":"dannyadair","id":699074,"avatar_url":"https://avatars.githubusercontent.com/u/699074?v=3","gravatar_id":"","url":"https://api.github.com/users/dannyadair","html_url":"https://github.com/dannyadair","followers_url":"https://api.github.com/users/dannyadair/followers","following_url":"https://api.github.com/users/dannyadair/following{/other_user}","gists_url":"https://api.github.com/users/dannyadair/gists{/gist_id}","starred_url":"https://api.github.com/users/dannyadair/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dannyadair/subscriptions","organizations_url":"https://api.github.com/users/dannyadair/orgs","repos_url":"https://api.github.com/users/dannyadair/repos","events_url":"https://api.github.com/users/dannyadair/events{/privacy}","received_events_url":"https://api.github.com/users/dannyadair/received_events","type":"User","site_admin":false},"created_at":"2015-03-09T06:02:39Z","updated_at":"2015-03-09T06:02:39Z","body":"The commits that were made since I opened this ticket did not solve the issue.\r\nHere's an example call - the file odoo-server.conf specifies a valid log file that I want to disable for the \"update all\" call:\r\n\r\n[ubuntu@odooci-danny-test-app] sudo: HOME=/opt/odoo /opt/odoo/odoo/openerp-server -c /etc/odoo/odoo-server.conf -u all -d MigrationTarget --logfile=None --stop-after-init\r\n\r\n[ubuntu@odooci-danny-test-app] out: ERROR: couldn't create the logfile directory. Logging to the standard output."}}