Skip to content

Debug info on code gen#405

Merged
prabhuramachandran merged 4 commits into
masterfrom
degub-info-on-code-gen
Jul 6, 2016
Merged

Debug info on code gen#405
prabhuramachandran merged 4 commits into
masterfrom
degub-info-on-code-gen

Conversation

@itziakos
Copy link
Copy Markdown
Member

@itziakos itziakos commented Jun 23, 2016

Add basic debug support for the code_gen script

Details:

  • Add a logger and log debug info while wrapping vtk classes
  • Add -v, --verbose option on the code_gen script
  • Minor cleanup

@codecov-io
Copy link
Copy Markdown

Current coverage is 45.39%

Merging #405 into master will decrease coverage by 0.01%

@@             master       #405   diff @@
==========================================
  Files           254        254          
  Lines         22987      22999    +12   
  Methods           0          0          
  Messages          0          0          
  Branches       3033       3034     +1   
==========================================
+ Hits          10439      10441     +2   
- Misses        11832      11842    +10   
  Partials        716        716          

Powered by Codecov. Last updated by f103b39...12a384b

Comment thread tvtk/__init__.py
import logging

# use a null handler when used as a library
logging.getLogger('tvtk').addHandler(logging.NullHandler())
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Could you please explain why this is needed?

Copy link
Copy Markdown
Member Author

@itziakos itziakos Jun 24, 2016

Choose a reason for hiding this comment

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

Adding a null handler is suggested for libraries that use the python logging framework so that there is always a handler (see https://docs.python.org/2/howto/logging.html#configuring-logging-for-a-library).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks, do you think this link could be put in a comment above this? Or is this obvious?

@prabhuramachandran prabhuramachandran merged commit 267f096 into master Jul 6, 2016
@prabhuramachandran prabhuramachandran deleted the degub-info-on-code-gen branch July 6, 2016 15:12
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