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

SCT-1268 Add logging system #107

Merged
merged 1 commit into from
Aug 16, 2018

Conversation

MrCreosote
Copy link
Member

Still to do: add logging to idmapper core system

Still to do: add logging to idmapper core system
@coveralls
Copy link

Pull Request Test Coverage Report for Build 229

  • 72 of 73 (98.63%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage increased (+0.2%) to 95.331%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/jgikbase/idmapping/builder.py 1 2 50.0%
Files with Coverage Reduction New Missed Lines %
src/jgikbase/idmapping/builder.py 2 62.12%
Totals Coverage Status
Change from base Build 228: 0.2%
Covered Lines: 1123
Relevant Lines: 1178

💛 - Coveralls

Copy link

@jayrbolton jayrbolton left a comment

Choose a reason for hiding this comment

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

I do think a lot of this is overkill for what could be a very tiny service, but I only had one specific comment

# bandit doesn't like random for crypo purposes, but we're not doing that here
flask_req_global.req_id = str(random.randrange(10000000000000000)).zfill(16) # nosec

Choose a reason for hiding this comment

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

how about using uuid?

Copy link
Member Author

Choose a reason for hiding this comment

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

This is the format that almost all the other services use, so I stuck with it. UUIDs would be fine, but it doesn't really matter IMO.

@MrCreosote MrCreosote merged commit f668932 into jgi-kbase:dev-prototype Aug 16, 2018
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