Skip to content

Commit

Permalink
encode changes to UTF-8 when logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Dustin J. Mitchell committed Aug 29, 2010
1 parent f188b00 commit 057a786
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion master/buildbot/changes/manager.py
Expand Up @@ -97,10 +97,11 @@ def removeSource(self, source):
def addChange(self, change):
"""Deliver a file change event. The event should be a Change object.
This method will timestamp the object as it is received."""
log.msg("adding change, who %s, %d files, rev=%s, branch=%s, repository=%s, "
msg = ("adding change, who %s, %d files, rev=%s, branch=%s, repository=%s, "
"comments %s, category %s" % (change.who, len(change.files),
change.revision, change.branch, change.repository,
change.comments, change.category))
log.msg(msg.encode('utf-8', 'replace'))

#self.pruneChanges() # use self.changeHorizon
# for now, add these in the background, without waiting for it. TODO:
Expand Down

0 comments on commit 057a786

Please sign in to comment.