chore(datasources): Adding debug logging to datasource provisioning when resource is not found in SqlStore (#107652)

This commit is contained in:
Andres Torres
2025-07-07 12:23:51 +00:00
committed by GitHub
parent b9fba95849
commit c2b7acae35
2 changed files with 9 additions and 2 deletions
@@ -83,6 +83,7 @@ func (ss *SqlStore) getDataSource(_ context.Context, query *datasources.GetDataS
ss.logger.Error("Failed getting data source", "err", err, "uid", query.UID, "id", query.ID, "name", query.Name, "orgId", query.OrgID) // nolint:staticcheck
return nil, err
} else if !has {
ss.logger.Debug("Data source not found", "uid", query.UID, "id", query.ID, "name", query.Name, "orgId", query.OrgID) // nolint:staticcheck
return nil, datasources.ErrDataSourceNotFound
}