mirror of
https://github.com/grafana/grafana.git
synced 2024-11-25 18:30:41 -06:00
Search: improve logging in case of failed dashboard loading phase (#55523)
This commit is contained in:
parent
57a0b6db2c
commit
9db2720016
@ -461,10 +461,11 @@ func (i *searchIndex) buildOrgIndex(ctx context.Context, orgID int64) (int, erro
|
||||
|
||||
i.logger.Info("Start building org index", "orgId", orgID)
|
||||
dashboards, err := i.loader.LoadDashboards(ctx, orgID, "")
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("error loading dashboards: %w", err)
|
||||
}
|
||||
orgSearchIndexLoadTime := time.Since(started)
|
||||
|
||||
if err != nil {
|
||||
return 0, fmt.Errorf("error loading dashboards: %w, elapsed: %s", err, orgSearchIndexLoadTime.String())
|
||||
}
|
||||
i.logger.Info("Finish loading org dashboards", "elapsed", orgSearchIndexLoadTime, "orgId", orgID)
|
||||
|
||||
dashboardExtender := i.extender.GetDashboardExtender(orgID)
|
||||
|
Loading…
Reference in New Issue
Block a user