openerp-community-reviewer team mailing list archive
-
openerp-community-reviewer team
-
Mailing list archive
-
Message #05842
[Bug 1305653] [NEW] [7.0] missing arguments to logging statement in workers.py
Public bug reported:
in openerp/services/workers.py:
def time_expired(n, stack):
_logger.info('Worker (%d) CPU time limit (%s) reached.', config['limit_time_cpu'])
There is a missing parameter, which cause a stack trace in the logging
module:
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
return fmt.format(record)
File "/home/afayolle/work/customers/avosdim/buildout/parts/server/openerp/netsvc.py", line 150, in format
logging.exception('while formatting %r', record)
File "/home/afayolle/work/customers/avosdim/buildout/parts/server/openerp/netsvc.py", line 144, in format
try:
File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
** Affects: ocb-server
Importance: Undecided
Assignee: Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c)
Status: Fix Committed
** Affects: ocb-server/7.0
Importance: Undecided
Assignee: Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c)
Status: Fix Committed
** Affects: openobject-server
Importance: Undecided
Status: Fix Committed
** Also affects: ocb-server
Importance: Undecided
Status: New
** Also affects: ocb-server/7.0
Importance: Undecided
Status: New
** Changed in: ocb-server/7.0
Assignee: (unassigned) => Alexandre Fayolle - camptocamp (alexandre-fayolle-c2c)
** Changed in: ocb-server/7.0
Status: New => Confirmed
--
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Server).
https://bugs.launchpad.net/bugs/1305653
Title:
[7.0] missing arguments to logging statement in workers.py
Status in OpenERP Community Backports (Server):
Fix Committed
Status in OpenERP Community Backports (Server) 7.0 series:
Fix Committed
Status in OpenERP Server:
Fix Committed
Bug description:
in openerp/services/workers.py:
def time_expired(n, stack):
_logger.info('Worker (%d) CPU time limit (%s) reached.', config['limit_time_cpu'])
There is a missing parameter, which cause a stack trace in the logging
module:
Traceback (most recent call last):
File "/usr/lib/python2.7/logging/__init__.py", line 846, in emit
msg = self.format(record)
File "/usr/lib/python2.7/logging/__init__.py", line 723, in format
return fmt.format(record)
File "/home/afayolle/work/customers/avosdim/buildout/parts/server/openerp/netsvc.py", line 150, in format
logging.exception('while formatting %r', record)
File "/home/afayolle/work/customers/avosdim/buildout/parts/server/openerp/netsvc.py", line 144, in format
try:
File "/usr/lib/python2.7/logging/__init__.py", line 464, in format
record.message = record.getMessage()
File "/usr/lib/python2.7/logging/__init__.py", line 328, in getMessage
msg = msg % self.args
TypeError: not enough arguments for format string
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-server/+bug/1305653/+subscriptions
Follow ups
References