diff options
author | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-01-13 22:15:21 -0800 |
---|---|---|
committer | Elizabeth Hunt <elizabeth@simponic.xyz> | 2025-01-13 22:15:21 -0800 |
commit | 8380ef2db173207339e6c8aec49c2ab61fb1e1c5 (patch) | |
tree | a2d4c82c7c4a735a224b624f1f4e335d0209eb33 | |
parent | bf5b86e9b87b77de6905870cc61e0d988e18879b (diff) | |
download | phoneassistant-8380ef2db173207339e6c8aec49c2ab61fb1e1c5.tar.gz phoneassistant-8380ef2db173207339e6c8aec49c2ab61fb1e1c5.zip |
log commands
-rw-r--r-- | assistant/assistant.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/assistant/assistant.go b/assistant/assistant.go index 00db82c..cf0a2a9 100644 --- a/assistant/assistant.go +++ b/assistant/assistant.go @@ -2,6 +2,7 @@ package assistant import ( "fmt" + "log" "net/http" "os" ) @@ -15,6 +16,7 @@ func UnlockDoor(webhook string) error { } func Do(command string) error { + log.Println("handling coomand", command) if command == "unlock" { return UnlockDoor(os.Getenv("UNLOCK_DOOR_WEBHOOK")) } |