-
Notifications
You must be signed in to change notification settings - Fork 38
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
Improve logging #143
Improve logging #143
Conversation
Trying to strike the right balance between verbose and non-verbose mode in the CLI. Particularly for the upload command it's been not satisfactory. The list of files being uploaded as coverage is now listed in non-verbose mode. Plus there's a positive feedback now that the process (command) finished - for ALL commands. So you know that at least the CLI did its thing, even though there might still be errors. And again for the upload command, separate better the response from codecov-api and the response from the PUT request afterwards. To help debugging and all that.
Codecov Report
@@ Coverage Diff @@
## master #143 +/- ##
==========================================
+ Coverage 94.70% 94.71% +0.01%
==========================================
Files 65 65
Lines 2039 2045 +6
==========================================
+ Hits 1931 1937 +6
Misses 108 108
Flags with carried forward coverage won't be shown. Click here to find out more.
|
assert out_bytes == [ | ||
( | ||
"info", | ||
"Process Commit creating complete. --- {\"result\": \"RequestResult(error=RequestError(code='HTTP Error 403', params={}, description='Permission denied'), warnings=[], status_code=403, text='Permission denied')\"}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can we get rid of the extra "" in the loggings?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can. But I agree that it was a bit too much in that message, so I decided to make it simpler (and not have the "" in the process)
It was a lot of data in the "process complete" message. We don't need all that just to let users know the process terminated. So breaking that up again into 2 messages, the 2nd having all the data in verbose level.
Trying to strike the right balance between verbose and non-verbose mode in the CLI.
Particularly for the upload command it's been not satisfactory. The list of files being uploaded as coverage is now listed in non-verbose mode.
Plus there's a positive feedback now that the process (command) finished - for ALL commands. So you know that at least the CLI did its thing, even though there might still be errors.
And again for the upload command, separate better the response from codecov-api and the response from the PUT request afterwards.
To help debugging and all that.