Lightweight server monitoring with historical data, docker stats, and alerts.
refactor(hub): decode only journal capability for systemd logs
henrygd826b52b655f4
diff --git a/internal/hub/api.go b/internal/hub/api.goindex 31a28819a..715b3e384 100644--- a/internal/hub/api.go+++ b/internal/hub/api.go@@ -16,7 +16,6 @@ import ("github.com/blang/semver""github.com/henrygd/beszel""github.com/henrygd/beszel/internal/alerts"- systementity "github.com/henrygd/beszel/internal/entities/system""github.com/henrygd/beszel/internal/ghupdate""github.com/henrygd/beszel/internal/hub/config""github.com/henrygd/beszel/internal/hub/systems"@@ -502,7 +501,9 @@ func (h *Hub) getSystemdLogs(e *core.RequestEvent) error {if err != nil {return e.NotFoundError("", err)}- var info systementity.Info+ var info struct {+ SystemdLogs bool `json:"jl"`+ }if err := systemRecord.UnmarshalJSONField("info", &info); err != nil {e.App.Logger().Error("failed to unmarshal system info for systemd logs", "system", systemID, "err", err)return e.JSON(http.StatusOK, map[string]string{"logs": ""})