This improves behavior when libtaskotron is not used as the main script,
but as a library. It no longer configures libtaskotron logger to the
DEBUG level by default, but inherits the root logger configuration. That
allows script authors to tune logging verbosity in a central place and
libtaskotron will respect that.
If libtaskotron is used as the main script, we set maximum verbosity and
then control the messages in the handlers.
Resultsdb_api is now also set to maximum verbosity when running as the
main script. This allows us to see resultsdb_api errors and debug
messages during task execution.
This is important to debug issues like these:
http://taskotron-dev.fedoraproject.org/taskmaster/builders/x86_64/builds/3/steps/runtask/logs/taskotron.log
I'd either choose a different name for the method - maybe something like _set_levels (?) or just plain moved the code to init_prior_config.