diff options
Diffstat (limited to 'format-notify')
-rwxr-xr-x | format-notify | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/format-notify b/format-notify index f461190..a0114c7 100755 --- a/format-notify +++ b/format-notify @@ -1,6 +1,6 @@ #!/usr/bin/env python -import os, sys, re, errno, time, random +import os, sys, re, errno, time, random, syslog def add_color(status): if status == 'WARNING': @@ -45,6 +45,7 @@ def main(): break except OSError: if time.time() - now > 2: + syslog.syslog("Dropping message: '%s'" % msg) sys.exit(1) else: time.sleep(random.random() * 0.3) |