You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
logr.Errorf("[api.CreateExternalEndpointResult] Failed to insert result in storage: %s", err.Error())
67
+
slog.Error("Failed to insert endpoint result", "error", err.Error())
68
68
returnc.Status(500).SendString(err.Error())
69
69
}
70
-
logr.Infof("[api.CreateExternalEndpointResult] Successfully inserted result for external endpoint with key=%s and success=%s", c.Params("key"), success)
70
+
slog.Info("Successfully inserted result for external endpoint", slog.Group("result", "key", c.Params("key"), "success", success))
// This should never happen, because ui.ValidateAndSetDefaults validates that the template works.
29
-
logr.Errorf("[api.SinglePageApplication] Failed to parse template. This should never happen, because the template is validated on start. Error: %s", err.Error())
29
+
slog.Error("Failed to parse template. This should never happen, because the template is validated on start.", "error", err)
30
30
returnc.Status(500).SendString("Failed to parse template. This should never happen, because the template is validated on start.")
31
31
}
32
32
c.Set("Content-Type", "text/html")
33
33
err=t.Execute(c, vd)
34
34
iferr!=nil {
35
35
// This should never happen, because ui.ValidateAndSetDefaults validates that the template works.
36
-
logr.Errorf("[api.SinglePageApplication] Failed to execute template. This should never happen, because the template is validated on start. Error: %s", err.Error())
36
+
slog.Error("Failed to parse template. This should never happen, because the template is validated on start.", "error", err)
37
37
returnc.Status(500).SendString("Failed to parse template. This should never happen, because the template is validated on start.")
0 commit comments