updated logging for TLJ locks

This commit is contained in:
2025-08-08 12:39:16 +01:00
parent 61b089fe55
commit c8f6c57983
3 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -3,7 +3,7 @@ package lockserver
import (
"encoding/json"
"fmt"
"io/ioutil"
"io/ioutil"
"net"
"net/http"
"net/url"
@@ -37,6 +37,7 @@ func (lock *TLJLockServer) BuildCommand(doorReq DoorCardRequest, checkIn, checkO
}
func (lock *TLJLockServer) LockSequence(conn net.Conn) error {
log.Infof("Sending command: %q", lock.command)
client := &http.Client{Timeout: 10 * time.Second}
resp, err := client.Get(lock.command)
if err != nil {