fix: error log

This commit is contained in:
tomaz jejcic 2023-10-17 12:06:02 +02:00
parent 04e117f361
commit c27ad8ab48

View File

@ -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
}