]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
misc/boodlegrid.tac: tweak sounds a bit
authorBrian Warner <warner@allmydata.com>
Tue, 15 Apr 2008 18:01:49 +0000 (11:01 -0700)
committerBrian Warner <warner@allmydata.com>
Tue, 15 Apr 2008 18:01:49 +0000 (11:01 -0700)
misc/boodlegrid.tac

index dfd857f50f3119c0ce18e3784adaa1f1fc46e256..18530dc0715786cc49fb4cf9ef52f6f08beb8b51 100644 (file)
@@ -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")