api: log api error

This commit is contained in:
yusing
2025-03-07 02:11:52 +08:00
parent c166b12515
commit 6220d02f32
2 changed files with 10 additions and 2 deletions

View File

@@ -30,7 +30,7 @@ func (d *dockerInfo) MarshalJSON() ([]byte, error) {
}
func DockerInfo(w http.ResponseWriter, r *http.Request) {
serveHTTP[dockerInfo, []dockerInfo](w, r, GetDockerInfo)
serveHTTP[dockerInfo](w, r, GetDockerInfo)
}
func GetDockerInfo(ctx context.Context, dockerClients DockerClients) ([]dockerInfo, gperr.Error) {