Skip to content
New issue

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

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

Already on GitHub? # to your account

fix(filecoin-proofs): add logging to all public API functions #1137

Merged
merged 1 commit into from
Jun 18, 2020
Merged

fix(filecoin-proofs): add logging to all public API functions #1137

merged 1 commit into from
Jun 18, 2020

Conversation

tcharding
Copy link
Contributor

From the issue description: "FFI exposed functions should log when called and right before they return."

Add logging to all the public functions (excl. public trait implementations) within the api module.

This issue (#650) is a bit out of date, I've made the best of what I could understand given the description. If I've missed the mark feel free to say and I can do whatever is needed to fix it up. Thanks.

I elected to use a style with no newline between the final log statement and the return value to help make explicit that the log statement should remain at the end of the function. Also, I made some existing functions more uniform (some had ':end' instead of ':finish' in the log message).

When reviewing, please confirm that this does actually close #650.

Closes: #650

vmx
vmx previously approved these changes Jun 3, 2020
@porcuquine
Copy link
Collaborator

@tcharding I don't seem to be able to reach you at the email on your profile, so I am opting for this sub-optimal channel. Can you please get on the Filecoin project matrix/slack and join the #fil-proofs channel to simplify any coordination around your contributions here?

@tcharding
Copy link
Contributor Author

@tcharding I don't seem to be able to reach you at the email on your profile, so I am opting for this sub-optimal channel. Can you please get on the Filecoin project matrix/slack and join the #fil-proofs channel to simplify any coordination around your contributions here?

Can do, no worries. Re email; my bad I didn't check that account yesterday, its the correct account though (my personal one).

porcuquine
porcuquine previously approved these changes Jun 18, 2020
From the issue description: "FFI exposed functions should log when
called and right before they return."

Add logging to all the public functions (excl. public trait
implementations) within the `api` module.

Closes: #650
@cryptonemo cryptonemo dismissed stale reviews from porcuquine and vmx via 7aa3cd6 June 18, 2020 20:59
@cryptonemo cryptonemo merged commit 96755e8 into filecoin-project:master Jun 18, 2020
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

no log output when retrieving a piece using libfilecoin_proofs.a
4 participants