Skip to content

Commit

Permalink
Merge pull request #173 from Tibz-Dankan/switch/sqlite
Browse files Browse the repository at this point in the history
Add request log error
  • Loading branch information
Tibz-Dankan authored Sep 12, 2024
2 parents 107db44 + e11d4f3 commit 4f763dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/services/httpRequest.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package services

import (
"log"
"net"
"net/http"
"time"
Expand Down Expand Up @@ -59,6 +60,7 @@ func MakeHTTPRequest(URL string) (Response, error) {
}

func isTimeoutError(err error) bool {
log.Println("Timeout error: ", err)
e, ok := err.(net.Error)
return ok && e.Timeout()
}

0 comments on commit 4f763dc

Please sign in to comment.