Too much output and error to be useful
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Moovida |
Invalid
|
Medium
|
Unassigned |
Bug Description
A typical Elisa session completely fill my terminal with garbage and errors, even if all seems to work perfectly.
It's too the point where you cannot even pay attention to the console because each action seems to output a bunch of lines and python crashes.
The fact that Elisa put the backtrace in a file and tell you the name of the file should be an indicator that there's something wrong with the current console output. (and it forces the programmer to do one extra step when debugging)
In order to solve this bug :
1) A typical Elisa session should have no output at all ! Any output should be an error that the user must care about. Any non-critical error should be displayed only with a debug parameter to True or something like that.
2) It should be possible to have debug output only for a plugin or a set of plugin. When you are developping a plugin, you want to correct all errors. But only those related to your stuff, specially if you are developping your plugin against the current trunk. (well, in theory. Practically, releases have as much output as anythhing else).
Thanks for taking care of that :-)
Changed in elisa: | |
importance: | Undecided → Medium |
milestone: | none → 0.5.x |
status: | New → Confirmed |
Although not really well documented, it is already possible to customize the logging level per-component when running Elisa.
To do this, set the ELISA_DEBUG environment variable to the desired value. Some examples:
`ELISA_DEBUG=*:5 ./elisa- core/bin/ elisa` -> maximum logging level (disclaimer: this is unreadable) DEBUG=* manager* :4 ./elisa- core/bin/ elisa` -> set the logging level to 4 for all components which name contain "manager".
`ELISA_
You can build more complex filters (the system is based on gstreamer's, see the section reserved to the --gst-debug option in the man page for gst-launch).
Displaying the traceback on the console rather than logging it to a file is a timesaver for developers, it's quite annoying to have to copy-paste the name of a temp file and open it in a separate terminal just to see what the error is when debugging.
Agreed on the fact that most of the "error" output as we have it currently is useless and could easily be fixed.