From 057a7866ed556b92b60879300d821c7f8cb5cc45 Mon Sep 17 00:00:00 2001 From: "Dustin J. Mitchell" Date: Sun, 29 Aug 2010 09:04:21 -0500 Subject: [PATCH] encode changes to UTF-8 when logging --- master/buildbot/changes/manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/master/buildbot/changes/manager.py b/master/buildbot/changes/manager.py index ea48af4b752..64166d65e10 100644 --- a/master/buildbot/changes/manager.py +++ b/master/buildbot/changes/manager.py @@ -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: