projects
/
openhab-process.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fe0c9a9
)
Добавлены варианты протоколирования.
author
Roman Bazalevsky
<rvb@rvb.name>
Fri, 26 Oct 2018 08:49:49 +0000
(11:49 +0300)
committer
Roman Bazalevsky
<rvb@rvb.name>
Fri, 26 Oct 2018 08:49:49 +0000
(11:49 +0300)
mqtt-bt/scan-beacons
patch
|
blob
|
history
diff --git
a/mqtt-bt/scan-beacons
b/mqtt-bt/scan-beacons
index 192539edc60095436776bb9024d504ed2a3db310..fcd3c207ebe7242050927fb280d95c088b93e077 100644
(file)
--- a/
mqtt-bt/scan-beacons
+++ b/
mqtt-bt/scan-beacons
@@
-65,7
+65,10
@@
end
function printLog(str)
if logging=="yes" then
capture("logger -t beaconmon \""..str.."\"")
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
print(str)
end
end