diff --git a/lockserver/tljlockserver.go b/lockserver/tljlockserver.go index ef63010..6349283 100644 --- a/lockserver/tljlockserver.go +++ b/lockserver/tljlockserver.go @@ -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 { diff --git a/main.go b/main.go index 4faba84..60209fc 100644 --- a/main.go +++ b/main.go @@ -30,7 +30,7 @@ import ( ) const ( - buildVersion = "1.0.9" + buildVersion = "1.0.10" serviceName = "hardlink" customLayout = "2006-01-02 15:04:05 -0700" transactionUrl = "http://127.0.0.1:18181/start-transaction/" diff --git a/release notes.md b/release notes.md index 503b51c..9bab4cb 100644 --- a/release notes.md +++ b/release notes.md @@ -2,8 +2,11 @@ builtVersion is a const in main.go +#### 1.0.10 - 08 August 2024 +updated logging for TLJ locks + #### 1.0.9 - 08 August 2024 -updated workflow for TLJ locks +added TLJ lock server and implemented workflow for TLJ locks #### 1.0.8 - 01 August 2024 improved error handling and logging in Salto