fixup! Aligning struct fields for better memory management.

This commit is contained in:
2024-06-20 16:00:51 +01:00
parent a4f7e1690d
commit 3fb7c7e0b1
7 changed files with 21 additions and 95 deletions
+6
View File
@@ -119,6 +119,12 @@ func proxyTheRequest(c *fiber.Ctx, currentEndpoint string) error {
if ifNotInTest() {
cfg.Monitoring.Increment(libpack_monitoring.MetricsFailed, nil)
}
cfg.Logger.Error(&libpack_logger.LogMessage{
Message: "Received non-200 response from the GraphQL server",
Pairs: map[string]interface{}{
"status_code": c.Response().StatusCode(),
},
})
return fmt.Errorf("Received non-200 response from the GraphQL server: %d", c.Response().StatusCode())
}