-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improvements for indexer function execution Logging (#76)
* feat: group blocks in console window + remove warning * feat: Show Mutation + query details better * feat: Show indexer function completion time in browser * chore: improve console.log message * feat: Add explicity field for data returned by mutation/query * chore: remove unnessary logging * feat: show user an info warning to let them know how mutations and queries function * feat: context.set logging * refactor: refactor logging into IndexerRunner + put warning for mutations + fix time calculation * feat: name of operation in the group name * refactor: rename class
- Loading branch information
Showing
5 changed files
with
74 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
const BLOCK_FETCHER_API = | ||
"https://70jshyr5cb.execute-api.eu-central-1.amazonaws.com/block/"; | ||
|
||
export async function fetchBlockDetails(blockHeight) { | ||
try { | ||
const response = await fetch( | ||
`${BLOCK_FETCHER_API}${String(blockHeight)}` | ||
); | ||
const block_details = await response.json(); | ||
return block_details; | ||
} catch { | ||
console.log(`Error Fetching Block Height details at ${blockHeight}`); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters