Remove slice email notification. (commented. will remove notification code after...
[mom.git] / bwmon.py
index 2410b7d..4a828a8 100755 (executable)
--- a/bwmon.py
+++ b/bwmon.py
@@ -244,13 +244,13 @@ class Slice:
                        bwlimit.set(xid = self.xid, maxrate = new_maxrate, maxexemptrate = new_maxexemptrate)
 
                # Notify slice
-               if message:
-                       subject = "pl_mom capped bandwidth of slice %(slice)s on %(hostname)s" % params
-                       if debug:
-                               print subject
-                               print message + (footer % params)
-                       else:
-                               slicemail(self.name, subject, message + (footer % params))
+               #if message:
+               #       subject = "pl_mom capped bandwidth of slice %(slice)s on %(hostname)s" % params
+               #       if debug:
+               #               print subject
+               #               print message + (footer % params)
+               #       else:
+               #               slicemail(self.name, subject, message + (footer % params))
 
 
 
@@ -336,8 +336,8 @@ def main():
                live.append(xid)
                
                if verbose:
-                       print("\nRunning stats for %s"\
-                           "\n minrate %s, maxrate %s, minexemptrate %s,"\
+                       print("\nRunning stats for %s from tc."\
+                           "\nminrate %s, maxrate %s, minexemptrate %s,"\
                                " maxexemptrate %s, bytes %s, exemptbytes %s" % \
                                (bwlimit.get_slice(xid), 
                                bwlimit.format_tc_rate(minrate),