Skip to content

Commit

Permalink
add more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasHiltl committed Nov 24, 2024
1 parent fb2214a commit ec52676
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/events/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,15 @@ func (l *EventListener) OnChangelogUpdated(e ChangelogUpdated) {
souce, err := source.NewSourceFromStore(l.cfg, e.CL, l.cache)
if err == nil {
go l.reindexSource(souce)
} else {
slog.Error("failed to create source", xlog.ErrAttr(err))
}
} else if e.Args.Searchable != nil && !*e.Args.Searchable {
souce, err := source.NewSourceFromStore(l.cfg, e.CL, l.cache)
if err == nil {
go l.removeIndex(souce)
} else {
slog.Error("failed to create source", xlog.ErrAttr(err))
}
}
}
Expand Down

0 comments on commit ec52676

Please sign in to comment.