summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2010-02-20 18:47:02 (GMT)
committerChristian Pointner <equinox@helsinki.at>2010-02-20 18:47:02 (GMT)
commit27fc3282b1743ec47bf79600556e8a35d17dea71 (patch)
treece2b3bfe7a4675a7fa58e5cdfe31c9805ca846f2
parent34ca1b46f926dd92d92acdf42fa3467a9f05435e (diff)
added logoutput to silence-watch.lua
-rw-r--r--silence-watch.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/silence-watch.lua b/silence-watch.lua
index c1cea54..d9afe87 100644
--- a/silence-watch.lua
+++ b/silence-watch.lua
@@ -46,6 +46,7 @@ function process_cmd(message)
"There is some noise at output 1 of the audioswitch\nCurrent State is: " .. message)
else
if (silence_state == "1") then
+ log.printf(log.NOTICE, "silence detected")
send_mail("logs@helsinki.at", "[RHCTL] silence detected ",
"Silence detected at output 1 of the audioswitch, make some noise!!\nCurrent State is: " .. message)
end