Skip to content

Commit

Permalink
Merge pull request #6 from guewen/no-odoo-log
Browse files Browse the repository at this point in the history
Set openerp's log level to ERROR
  • Loading branch information
guewen committed Jul 26, 2016
2 parents 50c3bef + cd9541e commit f9dc813
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ Unreleased

- Add --quiet mode

**Fixes**

- Set openerp's loglevel to ERROR, its logs clutter anthem's own outputs

0.2.0 (2016-07-22)
++++++++++++++++++

Expand Down
2 changes: 2 additions & 0 deletions anthem/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import argparse
import code
import importlib
import logging
import signal

from contextlib import contextmanager
Expand Down Expand Up @@ -106,6 +107,7 @@ def _build_odoo_env(self, odoo_args):
"please provide a database name though Odoo options (either "
"-d or an Odoo configuration file)"
)
logging.getLogger('openerp').setLevel(logging.ERROR)
openerp.service.server.start(preload=[], stop=True)

# openerp.service.server.start() modifies the SIGINT signal by its own
Expand Down

0 comments on commit f9dc813

Please sign in to comment.