aboutsummaryrefslogtreecommitdiffhomepage
path: root/configs/print.lua
diff options
context:
space:
mode:
Diffstat (limited to 'configs/print.lua')
-rw-r--r--configs/print.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/configs/print.lua b/configs/print.lua
new file mode 100644
index 0000000..c6391d3
--- /dev/null
+++ b/configs/print.lua
@@ -0,0 +1,5 @@
+-- This function prints the name of the channel it handles and it's value
+-- It can be used for a simple debug output with the `default-handler` configuration option
+function printchannel(value)
+ print(input_channel() .. " @ " .. value)
+end