-
Notifications
You must be signed in to change notification settings - Fork 18
Improvements to logging #63
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
Comments
Just adding resources that might help anyone taking a shot at this issue.
|
You can also use (and modify) the logging system added as a part of #72. |
Taking up this one @dhruvkb! Might take some time for me to complete this. |
Also, I'm unable to open issues in this repo. Can you explain why? |
@avats-dev creativecommons/.github#17 both explains and fixes the issue. |
Sounds good, but you need to ensure that all the scripts can run independently of each other. |
@avats-dev some new developments in this area that might be relevant: |
Wow, that is good! thanks @dhruvkb for the update, I'll keep that in mind. 👍 |
@sukhdeepg it might be, it's hard to say without a demo. GitHub Actions now also supports colors for error and warning formatting so that might be a simpler and more native solution. |
@dhruvkb understood 👍 |
I am taking this @dhruvkb |
@dhruvkb I have finished up the logging part for push_data_to_ccos and I guess we can have a demo for that if all goes well we can implement it in all other places. |
@rajdesai24 please create a PR so that we can review it. |
@dhruvkb I have made a pull request for the issue, please review it and let me know if there is some blocker. |
@dhruvkb I'll be creating a new pr with the resolved issues and proper logging everywhere please review it and do the necessary |
@rajdesai24 are you working on this? If not can I take this up? |
Yes, it's done my pr is left for review but you can still talk to dhruvkb he'll guide you the best |
No worries. I'll look for some other issues. |
@dhruvkb I will be opening a new PR with the same changes as my last PR got closed as it was a little off track with the repo as guided by @TimidRobot. Should I go ahead and make a new one? |
@rajdesai24 You can go ahead. |
Created new PR |
Fixed by #143 |
Problem
Currently the workflow scripts, notably those in
push_data_to_ccos/
andsync_community_team/
are riddled withprint()
statements serving the function of logging. While this is a perfectly workable solution, it is by no means elegant. Also the process of manually indenting the messages in theprint()
statements is messy and error-prone and makes for hard to comprehend logs.Alternatives
Python comes with a nifty
logging
module that should be used instead. Sprinkle some ANSI colouring and 🤯 .Implementation
The text was updated successfully, but these errors were encountered: