Skip to content

Commit

Permalink
Merge branch 'master' of github.com:buildbot/buildbot
Browse files Browse the repository at this point in the history
* 'master' of github.com:buildbot/buildbot:
  IRC: Remove some of the extraneous logging and subscriptions.
  • Loading branch information
djmitche committed Jan 20, 2012
2 parents a24ea8f + a0f14f2 commit 9b72ca5
Showing 1 changed file with 5 additions and 18 deletions.
23 changes: 5 additions & 18 deletions master/buildbot/status/words.py
Expand Up @@ -318,20 +318,14 @@ def command_WATCH(self, args, who):
self.send(r)
command_WATCH.usage = "watch <which> - announce the completion of an active build"

def buildsetSubmitted(self, buildset):
log.msg('[Contact] Buildset %s added' % (buildset))

def builderAdded(self, builderName, builder):
if (self.channel.categories != None and
builder.category not in self.channel.categories):
return

log.msg('[Contact] Builder %s added' % (builder))
builder.subscribe(self)

def builderChangedState(self, builderName, state):
log.msg('[Contact] Builder %s changed state to %s' % (builderName, state))

def requestSubmitted(self, brstatus):
log.msg('[Contact] BuildRequest %d for %s submitted' %
(brstatus.brid, brstatus.getBuilderName()))

def builderRemoved(self, builderName):
log.msg('[Contact] Builder %s removed' % (builderName))

Expand All @@ -347,7 +341,6 @@ def buildStarted(self, builderName, build):
return

if not self.notify_for('started'):
log.msg('Not notifying for a build when started-notification disabled')
return

if self.useRevisions:
Expand All @@ -373,9 +366,6 @@ def buildStarted(self, builderName, build):
def buildFinished(self, builderName, build, results):
builder = build.getBuilder()

# only notify about builders we are interested in
log.msg('[Contact] builder %r in category %s finished' % (builder, builder.category))

if (self.channel.categories != None and
builder.category not in self.channel.categories):
return
Expand Down Expand Up @@ -435,13 +425,11 @@ def watchedBuildFinished(self, b):

# only notify about builders we are interested in
builder = b.getBuilder()
log.msg('builder %r in category %s finished' % (builder,
builder.category))
if (self.channel.categories != None and
builder.category not in self.channel.categories):
return

builder_name = b.getBuilder().getName()
builder_name = builder.getName()
buildnum = b.getNumber()
buildrevs = b.getRevisions()

Expand Down Expand Up @@ -876,7 +864,6 @@ def privmsg(self, user, channel, message):
# to track users comings and goings, add code here

def action(self, user, channel, data):
#log.msg("action: %s,%s,%s" % (user, channel, data))
user = user.split('!', 1)[0] # rest is ~user@hostname
# somebody did an action (/me actions) in the broadcast channel
contact = self.getContact(channel)
Expand Down

0 comments on commit 9b72ca5

Please sign in to comment.