From: Brian Warner Date: Tue, 15 Apr 2008 18:01:49 +0000 (-0700) Subject: misc/boodlegrid.tac: tweak sounds a bit X-Git-Url: https://git.rkrishnan.org/simplejson/-?a=commitdiff_plain;h=77c3c616abe5cf62b77b418264f230889564b431;p=tahoe-lafs%2Ftahoe-lafs.git misc/boodlegrid.tac: tweak sounds a bit --- diff --git a/misc/boodlegrid.tac b/misc/boodlegrid.tac index dfd857f5..18530dc0 100644 --- a/misc/boodlegrid.tac +++ b/misc/boodlegrid.tac @@ -75,12 +75,12 @@ class Listener: if message.startswith("Retrieve") and "starting" in message: self.sound("mech/metal-clack.aiff") if message.startswith("Publish") and "starting" in message: + self.sound("mech/door-slam.aiff") #self.sound("mech/metal-clash.aiff") - self.sound("mech/clock-clang.aiff") if ("web: %(clientip)s" in format and m.get("method") == "POST" and "t=set_children" in m.get("uri", "")): - self.sound("mech/door-slam.aiff") + self.sound("mech/clock-clang.aiff") # generic messages #if m['level'] < 20: @@ -89,11 +89,17 @@ class Listener: pass elif format == "excessive reactor delay (%ss)": self.sound("animal/frog-cheep.aiff") - print "excessive delay", furl - elif (facility == "foolscap.negotiation" - and (message == "got offer for an existing connection" - or "master told us to use a new connection" in message)): - print "foolscap: got offer for an existing connection", message, furl + print "excessive delay %s: %s" % (m['args'][0], furl) + elif format == "excessive reactor delay (%(delay)ss)": + self.sound("animal/frog-cheep.aiff") + print "excessive delay %s: %s" % (m['delay'], furl) + elif facility == "foolscap.negotiation": + if (message == "got offer for an existing connection" + or "master told us to use a new connection" in message): + print "foolscap: got offer for an existing connection", message, furl + else: + #print "foolscap:", message + pass elif m['level'] > 30: # SCARY or BAD #self.sound("mech/alarm-bell.aiff") self.sound("environ/thunder-tense.aiff")