From cc680b9dbd467f16c58231b737e2f26a71187297 Mon Sep 17 00:00:00 2001 From: Ford Date: Tue, 11 Oct 2022 11:34:04 -0700 Subject: [PATCH] indexer-common: Trace log data used to evaluate each deployment - Useful to trace why the agent decided to allocate on a deployment --- packages/indexer-common/src/subgraphs.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/packages/indexer-common/src/subgraphs.ts b/packages/indexer-common/src/subgraphs.ts index f0d218fcb..1257b785a 100644 --- a/packages/indexer-common/src/subgraphs.ts +++ b/packages/indexer-common/src/subgraphs.ts @@ -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':`, {