diff options
| author | Xavier Morel <xmo@odoo.com> | 2018-05-14 13:57:27 +0000 |
|---|---|---|
| committer | Xavier Morel <xmo@odoo.com> | 2018-11-27 14:05:03 +0000 |
| commit | 92d5a4bce5a3878e10427ec8dfef8c4b21f64f3d (patch) | |
| tree | 0b8550445223ad5d814c9fe878b7fb9991e72cca /odoo/tools/config.py | |
| parent | cb7589aaa5902c56ae5cbb9cee7b81b6b21bacb7 (diff) | |
[REM] builtin logrotate features
It's completely FUBAR when using workers[0] and properly
reimplementing it is not really worth the effort when logrotate(8) and
newsyslog(8) exist (or cyclog/multilog/cronolog if you subscribe to
the "logrotate and newsyslog are a design that should be consigned to
history" school of thought).
[0] https://stackoverflow.com/questions/34186774/why-doesnt-timedrotatingfilehandler-work-properly-and-how-to-solve-this-issuer
closes odoo/odoo#29073
Diffstat (limited to 'odoo/tools/config.py')
| -rw-r--r-- | odoo/tools/config.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/odoo/tools/config.py b/odoo/tools/config.py index 812e4e2adc6..c499078dcd5 100644 --- a/odoo/tools/config.py +++ b/odoo/tools/config.py @@ -167,7 +167,6 @@ class configmanager(object): # Logging Group group = optparse.OptionGroup(parser, "Logging Configuration") group.add_option("--logfile", dest="logfile", help="file where the server log will be stored") - group.add_option("--logrotate", dest="logrotate", action="store_true", my_default=False, help="enable logfile rotation") group.add_option("--syslog", action="store_true", dest="syslog", my_default=False, help="Send the log to the syslog server") group.add_option('--log-handler', action="append", default=[], my_default=DEFAULT_LOG_HANDLER, metavar="PREFIX:LEVEL", help='setup a handler at LEVEL for a given PREFIX. An empty PREFIX indicates the root logger. This option can be repeated. Example: "odoo.orm:DEBUG" or "werkzeug:CRITICAL" (default: ":INFO")') group.add_option('--log-request', action="append_const", dest="log_handler", const="odoo.http.rpc.request:DEBUG", help='shortcut for --log-handler=odoo.http.rpc.request:DEBUG') @@ -429,7 +428,7 @@ class configmanager(object): keys = [ 'language', 'translate_out', 'translate_in', 'overwrite_existing_translations', 'dev_mode', 'shell_interface', 'smtp_ssl', 'load_language', - 'stop_after_init', 'logrotate', 'without_demo', 'http_enable', 'syslog', + 'stop_after_init', 'without_demo', 'http_enable', 'syslog', 'list_db', 'proxy_mode', 'test_file', 'test_tags', 'osv_memory_count_limit', 'osv_memory_age_limit', 'max_cron_threads', 'unaccent', |
