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

Add logging module #10

Merged
merged 4 commits into from
Jul 23, 2018
Merged

Add logging module #10

merged 4 commits into from
Jul 23, 2018

Conversation

rsetaluri
Copy link
Collaborator

Similar to magma logging module (magma/magma/logging.py).

Similar to magma logging module (magma/magma/logging.py).
@leonardt
Copy link
Owner

Rebased this branch on master with the pep8 changes merged.

fault/logging.py Outdated
if sys.version_info < (3, 5):
return frame[0]
else:
return frame.frame
Copy link
Owner

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 need this extra logic for wire tracebacks. Can we remove this function and simplify error to basically just printout to stderr? we could just have it use log.error like the other functions.

@coveralls
Copy link

coveralls commented Jul 23, 2018

Pull Request Test Coverage Report for Build 58

  • 13 of 13 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.7%) to 89.202%

Totals Coverage Status
Change from base Build 52: 0.7%
Covered Lines: 190
Relevant Lines: 213

💛 - Coveralls

rsetaluri and others added 3 commits July 23, 2018 12:48
Remove magma specific logic. fault.logging.error() is now just a wrapper
of python.logging.error().
Copy link
Owner

@leonardt leonardt left a comment

Choose a reason for hiding this comment

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

Looks good

@leonardt leonardt merged commit 9ae1355 into master Jul 23, 2018
@leonardt leonardt deleted the add-logging branch July 23, 2018 19:56
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