From 1b819993292d3a8c8a1b80c188969ac8f273fae4 Mon Sep 17 00:00:00 2001 From: Steven Date: Sat, 23 Dec 2023 08:55:23 +0800 Subject: [PATCH] chore: skip invalida setting checks --- api/v1/system.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/v1/system.go b/api/v1/system.go index 1dbe0210..89513535 100644 --- a/api/v1/system.go +++ b/api/v1/system.go @@ -109,7 +109,7 @@ func (s *APIV1Service) GetSystemStatus(c echo.Context) error { var baseValue any err := json.Unmarshal([]byte(systemSetting.Value), &baseValue) if err != nil { - log.Warn("Failed to unmarshal system setting value", zap.String("setting name", systemSetting.Name)) + // Skip invalid value. continue }