log the response error not the handler one

This commit is contained in:
Gani Georgiev
2022-07-14 11:52:35 +03:00
parent 28bc2678e9
commit 6749559a22
+1 -1
View File
@@ -68,7 +68,7 @@ func InitApi(app core.App) (*echo.Echo, error) {
// truly rare case; eg. client already disconnected // truly rare case; eg. client already disconnected
if cErr != nil && app.IsDebug() { if cErr != nil && app.IsDebug() {
log.Println(err) log.Println(cErr)
} }
} }