Merge branch 'master' of rvb.name:openhab-process
[openhab-process.git] / mqtt-bt / scan-beacons
index 210bcfbbf1c714cf37e8e4e69a10d1571d685696..0e0b701d483eab414041eafed53ad07d5bb2fec9 100644 (file)
@@ -98,7 +98,10 @@ end
 function printLog(str)
   if logging=="yes" then
     capture("logger -t beaconmon \""..str.."\"")
-  else 
+    print(str)  
+  elseif logging=="syslog" then
+    capture("logger -t beaconmon \""..str.."\"")
+  elseif logging=="stdout" then 
     print(str)  
   end 
 end