Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upRationalize the logging in ACA-Py #438
Comments
|
I am interested in working on this issue. |
|
Assigned to you @nacerix -- thanks. Please let us know if you have any questions. Please look at the contributor guidelines and especially make note of the need to DCO sign off every commit. That is a requirement with all Hyperledger repos. Much worse if you find out about that later. :-) |
|
sure, I will do |
|
Some proposals to start the discussion:
|
|
Definitely agree on 1 :-) - that's one we want to be sure to eliminate. I think the rest of your points are correct but leave it to the devs to both confirm and add guidance as to what is in place now and what we want to have. @andrewwhitehead @nrempel -- can the two of you add your $0.02CDN to help kickoff this task? |
|
Thanks for picking this up @nacerix! I agree with all of your points. We use the python logging module and normally make it available like this: https://github.com/hyperledger/aries-cloudagent-python/blob/master/aries_cloudagent/protocols/present_proof/v1_0/manager.py#L42 We allow setting of log level with a command-line parameter when you start the process but it is also possible to ingest a python logging config .ini file for more complex configuration: https://github.com/hyperledger/aries-cloudagent-python/blob/master/aries_cloudagent/config/logging.py We use Let me know if you have any questions! |

Formed in 2009, the Archive Team (not to be confused with the archive.org Archive-It Team) is a rogue archivist collective dedicated to saving copies of rapidly dying or deleted websites for the sake of history and digital heritage. The group is 100% composed of volunteers and interested parties, and has expanded into a large amount of related projects for saving online and digital history.

While the team building ACA-Py has been pretty good at maintaining the logging, there is some inconsistency in the handling of logging. This task is to formalize the logging approach across the board, and then to do a pass through the code ensuring that the logging statements match the intention of the approach.
The first part (formalizing) is likely just creating something like a "logging.md" that outlines how contributors should be doing logging. Even better would be to find and reference (likely in "contributors.md") a well-known Python standard logging approach. Whatever is selected should be reviewed and agreed to by the team.
The second part includes ensuring the logging library is configured appropriately, any non-logging
printstatements are either removed or converted to logging calls, and that all logging is happening at the appropriate level (e.g. debug, warn, error, etc.).Wrapping up the project will include adding guidance (or CI checks?) for existing and future devs on how they can make sure that the logging remains top notch.