I am looking to "silence" the debug level of the yum API in python. For example I am assigning two yum commands to variables like below;
import yum
yb = yum.YumBase()
yum_conf = yb.conf.config_file_path
package_list = yb.doPackageLists(pkgnarrow='updates', patterns='', ignore_case=True)
When running the script it comes back with the following for CentOS 7:
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.sov.uk.goscomb.net
* extras: mirror.sov.uk.goscomb.net
* updates: mirror.sov.uk.goscomb.net
And then on CentOS 6:
Loaded plugins: fastestmirror
Determining fastest mirrors
I don't want this verbose level of printing. I'm thinking this is something to do with the logging level, but am at cross path as to how to alter this.