Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.

optimize oracle log#764

Merged
shargon merged 4 commits intoneo-project:masterfrom
Ashuaidehao:refac-oracle-log
Nov 2, 2022
Merged

optimize oracle log#764
shargon merged 4 commits intoneo-project:masterfrom
Ashuaidehao:refac-oracle-log

Conversation

@Ashuaidehao
Copy link
Contributor

No description provided.

private async Task ProcessRequestAsync(DataCache snapshot, OracleRequest req)
{
Log($"Process oracle request txid: {req.OriginalTxid}, url: {req.Url}");
Log($"[{req.OriginalTxid}] Process oracle request start:<{req.Url}>");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

begin and end

start and finish

maybe begin is better


(OracleResponseCode code, string data) = await ProcessUrlAsync(req.Url);

Log($"[{req.OriginalTxid}] Process oracle request end:<{req.Url}>, responseCode:{code}, response:{data}");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe finish

Copy link
Member

@vncoelho vncoelho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the logs, I will soon test it on our examples.

@superboyiii
Copy link
Member

Tested OK.

@shargon shargon merged commit 0cd622d into neo-project:master Nov 2, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants