Skip to content

Conversation

@ghost
Copy link

@ghost ghost commented Nov 19, 2019

  • ServerErrorResponseSchema has a wrong definition of the errors field. It must be a list of strings.
  • function_log creates a list with the result of the invocation of the setFormatter method for each logging handler configured for a logger (a list of None's), but the list is never used.

@codecov-io
Copy link

codecov-io commented Nov 19, 2019

Codecov Report

Merging #83 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #83      +/-   ##
==========================================
+ Coverage   92.66%   92.66%   +<.01%     
==========================================
  Files          67       67              
  Lines        1922     1923       +1     
==========================================
+ Hits         1781     1782       +1     
  Misses        141      141
Impacted Files Coverage Δ
connect/models/schemas.py 93.12% <100%> (ø) ⬆️
connect/logger/logger.py 100% <100%> (ø) ⬆️

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 0ae025e...520b9a5. Read the comment docs.

custom_logger = logging.getLogger()
sformat = " %(levelname)-6s; %(asctime)s; %(name)-6s; %(module)s:%(funcName)s:line" \
"-%(lineno)d: %(message)s"
[handler.setFormatter(logging.Formatter(sformat, "%I:%M:%S"))
Copy link
Author

Choose a reason for hiding this comment

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

this line allocates a list in memory that is never used

@marcserrat marcserrat marked this pull request as ready for review November 19, 2019 14:05
Copy link
Contributor

@marcserrat marcserrat left a comment

Choose a reason for hiding this comment

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

Good for me

@marcserrat marcserrat merged commit 362eb46 into cloudblue:master Nov 25, 2019
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.

3 participants