Edgewall Software
Modify

Opened 18 years ago

Closed 17 years ago

#136 closed defect (fixed)

logging throws error from deactivated builds

Reported by: ryanjoneil@… Owned by: cmlenz
Priority: major Milestone: 0.6
Component: Build master Version: dev
Keywords: logging deactivate Cc:
Operating System: Linux

Description

When I deactivate a build configuration and then attempt to run existing configurations, I get this error:

2006-08-23 16:17:09,977 [bitten.queue] DEBUG: Checking for pending builds...
2006-08-23 16:18:44,987 [bitten.beep] DEBUG: Scheduling event _enqueue_builds to run at 2006-08-23 16:20:44.987450
2006-08-23 16:18:45,069 [bitten.beep] DEBUG: Scheduling event _initiate_builds to run at 2006-08-23 16:19:09.069690
Traceback (most recent call last):
  File "/usr/lib/python2.4/logging/__init__.py", line 731, in emit
    msg = self.format(record)
  File "/usr/lib/python2.4/logging/__init__.py", line 617, in format
    return fmt.format(record)
  File "/usr/lib/python2.4/logging/__init__.py", line 405, in format
    record.message = record.getMessage()
  File "/usr/lib/python2.4/logging/__init__.py", line 276, in getMessage
    msg = msg % self.args
TypeError: not enough arguments for format string
2006-08-23 16:19:10,070 [bitten.queue] DEBUG: Checking for pending builds...

Apparently the logging module swallows errors in some cases, this one included. A bit of digging brought me to:

...
File "build/bdist.linux-x86_64/egg/bitten/queue.py", line 133, in get_next_pending_build
...

Patch included ;)

Attachments (1)

bitten.diff (1.0 KB) - added by ryan 18 years ago.

Download all attachments as: .zip

Change History (4)

Changed 18 years ago by ryan

comment:1 Changed 18 years ago by ryan

Not sure what happened to my title here. Should be: 'logging throws error from deactivated builds'

comment:2 Changed 17 years ago by cmlenz

  • Summary changed from logg to logging throws error from deactivated builds

comment:3 Changed 17 years ago by cmlenz

  • Milestone set to 0.6
  • Resolution set to fixed
  • Status changed from new to closed

Patch applied in [379].

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.