Skip to content

Commit

Permalink
common: trace response from subgraph_deploy call
Browse files Browse the repository at this point in the history
  • Loading branch information
tilacog committed Jul 11, 2023
1 parent d1b1cb0 commit 9a4eea0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/indexer-common/src/graph-node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,21 @@ export class GraphNode {
this.logger.info(`Deploy subgraph deployment`, {
name,
deployment: deployment.display,
node_id,
})
const response = await this.admin.request('subgraph_deploy', {
name,
ipfs_hash: deployment.ipfsHash,
node_id: node_id,
})

this.logger.trace(`Response from 'subgraph_deploy' call`, {
deployment: deployment.display,
name,
node_id,
response,
})

if (response.error) {
throw response.error
}
Expand Down

0 comments on commit 9a4eea0

Please sign in to comment.