Skip to content

Commit

Permalink
indexer-common: Trace log data used to evaluate each deployment
Browse files Browse the repository at this point in the history
- Useful to trace why the agent decided to allocate on a deployment
  • Loading branch information
fordN committed Oct 11, 2022
1 parent 76bff5c commit 6b97cbe
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/indexer-common/src/subgraphs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,11 @@ export function isDeploymentWorthAllocatingTowards(
new SubgraphDeploymentID(rule.identifier).bytes32 === deployment.id.bytes32,
) || globalRule

logger.trace('Evaluating whether subgraphDeployment is worth allocating towards', {
deployment,
matchingRule: deploymentRule
})

// The deployment is not eligible for deployment if it doesn't have an allocation amount
if (!deploymentRule?.allocationAmount) {
logger.debug(`Could not find matching rule with defined 'allocationAmount':`, {
Expand Down

0 comments on commit 6b97cbe

Please sign in to comment.