Skip to content

Conversation

@sdfgeoff
Copy link

When attempting to use the pyknotid library as part of a larger system, the continous printing of debug information is a little annoying. Particularly because python has the logging module as a standard library (the vprint functions which are scattered all through the code act as a miniature logging priority system).
Ideally all calls to:

  • vprint
  • print
  • stdout.write

should be replaced with calls to logging.info (one of the lowest priority messages). Users of the library can then configure the logging module to either display the information or to not.

I haven't replaced all the print statements here, only the ones that influence my intended use. More may change in the future if I start using other parts of the library. If someone is bored for several hours, the can go through the whole library.....

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.

1 participant