updated logging for TLJ locks

This commit is contained in:
yurii 2025-08-08 12:39:16 +01:00
parent 61b089fe55
commit c8f6c57983
3 changed files with 7 additions and 3 deletions

View File

@ -3,7 +3,7 @@ package lockserver
import ( import (
"encoding/json" "encoding/json"
"fmt" "fmt"
"io/ioutil" "io/ioutil"
"net" "net"
"net/http" "net/http"
"net/url" "net/url"
@ -37,6 +37,7 @@ func (lock *TLJLockServer) BuildCommand(doorReq DoorCardRequest, checkIn, checkO
} }
func (lock *TLJLockServer) LockSequence(conn net.Conn) error { func (lock *TLJLockServer) LockSequence(conn net.Conn) error {
log.Infof("Sending command: %q", lock.command)
client := &http.Client{Timeout: 10 * time.Second} client := &http.Client{Timeout: 10 * time.Second}
resp, err := client.Get(lock.command) resp, err := client.Get(lock.command)
if err != nil { if err != nil {

View File

@ -30,7 +30,7 @@ import (
) )
const ( const (
buildVersion = "1.0.9" buildVersion = "1.0.10"
serviceName = "hardlink" serviceName = "hardlink"
customLayout = "2006-01-02 15:04:05 -0700" customLayout = "2006-01-02 15:04:05 -0700"
transactionUrl = "http://127.0.0.1:18181/start-transaction/" transactionUrl = "http://127.0.0.1:18181/start-transaction/"

View File

@ -2,8 +2,11 @@
builtVersion is a const in main.go builtVersion is a const in main.go
#### 1.0.10 - 08 August 2024
updated logging for TLJ locks
#### 1.0.9 - 08 August 2024 #### 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 #### 1.0.8 - 01 August 2024
improved error handling and logging in Salto improved error handling and logging in Salto