Skip to content

Commit

Permalink
[PRP-659] Lower 'Smart Alarm' log messages to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
aaron-miller committed Sep 11, 2017
1 parent 35f684f commit 70193db
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions smartapps/statusbits/smart-alarm.src/smart-alarm.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -1059,7 +1059,7 @@ private def setupInit() {
}

private def initialize() {
log.info "Smart Alarm. Version ${getVersion()}. ${textCopyright()}"
log.debug "Smart Alarm. Version ${getVersion()}. ${textCopyright()}"
LOG("settings: ${settings}")

clearAlarm()
Expand Down Expand Up @@ -1237,10 +1237,10 @@ private def initRestApi() {
LOG("Created new access token: ${token})")
}
state.url = "https://graph.api.smartthings.com/api/smartapps/installations/${app.id}/"
log.info "REST API enabled"
log.debug "REST API enabled"
} else {
state.url = ""
log.info "REST API disabled"
log.debug "REST API disabled"
}
}

Expand Down Expand Up @@ -1541,7 +1541,7 @@ def activateAlarm() {
case "Strobe":
settings.alarms*.strobe()
break

case "Both":
settings.alarms*.both()
break
Expand All @@ -1558,7 +1558,7 @@ def activateAlarm() {
settings.cameras*.take()

if (settings.helloHomeAction) {
log.info "Executing HelloHome action '${settings.helloHomeAction}'"
log.debug "Executing HelloHome action '${settings.helloHomeAction}'"
location.helloHome.execute(settings.helloHomeAction)
}

Expand All @@ -1576,7 +1576,7 @@ def activateAlarm() {
private def notify(msg) {
LOG("notify(${msg})")

log.info msg
log.debug msg

if (state.alarms.size()) {
// Alarm notification
Expand Down Expand Up @@ -1604,7 +1604,7 @@ private def notify(msg) {

if (settings.pushbulletAlarm && settings.pushbullet) {
settings.pushbullet*.push(location.name, msg)
}
}
} else {
// Status change notification
if (settings.pushStatusMessage) {
Expand Down

0 comments on commit 70193db

Please sign in to comment.