Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize oracle log #764

Merged
merged 4 commits into from
Nov 2, 2022
Merged

Conversation

Ashuaidehao
Copy link
Contributor

No description provided.

@@ -268,12 +268,14 @@ private async Task SendResponseSignatureAsync(ulong requestId, byte[] txSign, Ke

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


uint height = NativeContract.Ledger.CurrentIndex(snapshot) + 1;

(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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants