From ba6bd277afbe9cdab68a9467d8a32820d083c465 Mon Sep 17 00:00:00 2001 From: H1rono Date: Wed, 17 Jan 2024 12:16:25 +0900 Subject: [PATCH] =?UTF-8?q?:recycle:=20`/images`=20API=E3=81=A7=E3=83=AD?= =?UTF-8?q?=E3=82=B0=E3=82=92=E5=87=BA=E3=81=99=E3=82=88=E3=81=86=E3=81=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- router/images.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/router/images.go b/router/images.go index 4e58bdba..f662071d 100644 --- a/router/images.go +++ b/router/images.go @@ -21,6 +21,7 @@ func (s *Service) GetImages(c echo.Context) error { if gorm.IsRecordNotFoundError(err) { return c.NoContent(http.StatusNotFound) } else { + c.Logger().Error(err) return c.NoContent(http.StatusInternalServerError) } } @@ -39,6 +40,7 @@ func (s *Service) GetImages(c echo.Context) error { f, err := s.Images.OpenApplicationsImage(image) if err != nil { + c.Logger().Error(err) return c.NoContent(http.StatusInternalServerError) } @@ -61,6 +63,7 @@ func (s *Service) DeleteImages(c echo.Context) error { if gorm.IsRecordNotFoundError(err) { return c.NoContent(http.StatusNotFound) } else { + c.Logger().Error(err) return c.NoContent(http.StatusInternalServerError) } } @@ -80,6 +83,7 @@ func (s *Service) DeleteImages(c echo.Context) error { } if err = s.Images.DeleteApplicationsImage(image); err != nil { + c.Logger().Error(err) return c.NoContent(http.StatusInternalServerError) }