eftsung / pygr

Automatically exported from code.google.com/p/pygr
0 stars 0 forks source link

Shorter notifications, messages #62

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Some notifications that are generated by pygr can be long multiline
instructions that also try to educate the user on how to avoid getting the
warning. There are flags in place to reduce the verbosity, yet that adds to
the overhead of having to both implement and maintain code that sets the
notifications, as well as remember how to set the verbosity levels.

I agree with the sentiment of trying to educate users, doing it from the
source code can be limiting and often annoying. I suggest replacing the
long messages with shorter ones that describe the problem without being
overly verbose. Then on a documentation page we can describe in more detail
what the warnings are about and how to avoid them.

At the same time using a logger we can globally alter the level of messages
that will get displayed without having to keep track of implementation
details. 

Original issue reported on code.google.com by istvan.a...@gmail.com on 14 Jan 2009 at 11:24

GoogleCodeExporter commented 8 years ago
I like this suggestion.  Alternatively, we could  put all the messages in one 
file
and then load them from that location.  Might help to avoid long strings in the
source code and could aid in internationalization :)

Original comment by the.good...@gmail.com on 16 Jan 2009 at 5:14