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

Restore progress logging behavior when non-interactive #5259

Merged
merged 2 commits into from Dec 18, 2020

Conversation

mih
Copy link
Member

@mih mih commented Dec 17, 2020

When JSON progress by git-annex was handled with ProcessAnnexProgressIndicators there was no progress logging in non-interactive mode, unless log level was set to 1.

With the switch to AnnexJsonProtocol this behavior changed and now non-interactive logging comes out at the default INFO level.

This change standardizes the non-interactive log level to 5, as used in other places too.

The second commit removes the already obsolete ProcessAnnexProgressIndicators and its tests.

When JSON progress by git-annex was handled with
`ProcessAnnexProgressIndicators` there was no progress logging
in non-interactive mode, unless log level was set to 1.

With the switch to `AnnexJsonProtocol` this behavior changed
and now non-interactive logging comes out at the default INFO level.

This change standardizes the non-interactive log level to 5, as used
in other places too.
@codecov
Copy link

codecov bot commented Dec 17, 2020

Codecov Report

Merging #5259 (948ccf3) into master (7d0542f) will increase coverage by 0.04%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #5259      +/-   ##
==========================================
+ Coverage   90.20%   90.24%   +0.04%     
==========================================
  Files         297      297              
  Lines       41666    41496     -170     
==========================================
- Hits        37583    37449     -134     
+ Misses       4083     4047      -36     
Impacted Files Coverage Δ
datalad/support/annexrepo.py 91.10% <ø> (+1.65%) ⬆️
datalad/support/tests/test_annexrepo.py 96.99% <ø> (-0.11%) ⬇️
datalad/ui/utils.py 71.87% <0.00%> (-6.25%) ⬇️
datalad/ui/progressbars.py 80.92% <0.00%> (-0.58%) ⬇️
datalad/downloaders/tests/test_http.py 90.49% <0.00%> (+1.90%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7d0542f...948ccf3. Read the comment docs.

Copy link
Contributor

@kyleam kyleam left a comment

Choose a reason for hiding this comment

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

Sounds fine for me.

For the ProcessAnnexProgressIndicators removal, it seems unlikely to be used outside the code base and a search doesn't bring up anything.

@mih
Copy link
Member Author

mih commented Dec 18, 2020

Thx!

@mih mih merged commit 36c0ce7 into datalad:master Dec 18, 2020
@mih mih deleted the bf-noninterlog branch December 18, 2020 07:36
@adswa
Copy link
Member

adswa commented Dec 18, 2020

EDIT: Sorry, not, I was wrong this fixes the observation I shared in matrix, but I believe it led to #5260

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

3 participants