mirror of
https://codeberg.org/pluja/kycnot.me
synced 2025-03-12 20:46:32 -04:00
only output could not get pic on debug mode
This commit is contained in:
parent
192fccb443
commit
0229c499e5
@ -64,7 +64,7 @@ func (s *Server) handleApiPicture(c iris.Context) {
|
|||||||
|
|
||||||
resp, err := s.HttpClient.Do(req)
|
resp, err := s.HttpClient.Do(req)
|
||||||
if err != nil || resp.StatusCode != http.StatusOK {
|
if err != nil || resp.StatusCode != http.StatusOK {
|
||||||
log.Error().Err(err).Msgf("GetPicture: Could not get image for %s", service.Name)
|
log.Debug().Err(err).Msgf("GetPicture: Could not get image for %s", service.Name)
|
||||||
respondWithPlaceholder(c, service.Name)
|
respondWithPlaceholder(c, service.Name)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user