From c27ad8ab48ebf7d1bf70bd32f66d22468f78484a Mon Sep 17 00:00:00 2001 From: tomaz jejcic Date: Tue, 17 Oct 2023 12:06:02 +0200 Subject: [PATCH] fix: error log --- validator/attributeprovider.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/validator/attributeprovider.go b/validator/attributeprovider.go index 4cbff10..8defb83 100644 --- a/validator/attributeprovider.go +++ b/validator/attributeprovider.go @@ -36,7 +36,9 @@ func (ap *AttributeProvider) Init() error { _, err := s.Every(1).Day().At("03:00").Do(func() { ap.attributes = ap.updateFunc(ap.ctx) }) - log.Must(ap.l, err, "failed to ...") + if err != nil { + log.Must(ap.l, err, "failed to initialize attribute provider scheduler") + } s.StartAsync() return nil }