Add error handling in tagger initialization

This commit is contained in:
2026-02-17 08:13:50 +01:00
parent 1cf2c41bd7
commit 9af44779aa

View File

@@ -51,10 +51,14 @@ func newTagger() {
jobTagger.stopTaggers = append(jobTagger.stopTaggers, &JobClassTagger{})
for _, tagger := range jobTagger.startTaggers {
tagger.Register()
if err := tagger.Register(); err != nil {
cclog.Errorf("failed to register start tagger: %s", err)
}
}
for _, tagger := range jobTagger.stopTaggers {
tagger.Register()
if err := tagger.Register(); err != nil {
cclog.Errorf("failed to register stop tagger: %s", err)
}
}
}