Merge branch 'master' of rvb.name:openhab-process
authorRoman Bazalevsky <rvb@rvb.name>
Fri, 26 Oct 2018 08:50:24 +0000 (11:50 +0300)
committerRoman Bazalevsky <rvb@rvb.name>
Fri, 26 Oct 2018 08:50:24 +0000 (11:50 +0300)
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