mirror of
https://github.com/minoplhy/chibisafe-netproxy.git
synced 2024-11-22 03:27:08 +00:00
fix: log error on Check_API_Key req
This commit is contained in:
parent
f44280abb9
commit
9ef219b254
@ -6,6 +6,8 @@ import (
|
|||||||
"io"
|
"io"
|
||||||
"net/http"
|
"net/http"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
|
"github.com/rs/zerolog/log"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Check_API_Key(Basepath string, accessKey string) bool {
|
func Check_API_Key(Basepath string, accessKey string) bool {
|
||||||
@ -20,6 +22,8 @@ func Check_API_Key(Basepath string, accessKey string) bool {
|
|||||||
}
|
}
|
||||||
resp, err := HTTPNoData(GETStruct)
|
resp, err := HTTPNoData(GETStruct)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
// Boolean is returned. So, no error was allowed to be returned
|
||||||
|
log.Error().Msg(err.Error())
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
|
Loading…
Reference in New Issue
Block a user