'yum' and 'subscription-manager' commands fill out the terminal with [INFO] or [DEBUG] output

Solution Verified - Updated -

Issue

'yum' and 'subscription-manager' commands execution will fill up the terminal with [INFO] or [DEBUG] output

  • When debug is set to INFO
# grep ^default_log_level /etc/rhsm/rhsm.conf
default_log_level = INFO

# yum clean all
2023-06-22 12:59:16,957 [INFO] yum:19922:MainThread @connection.py:909 - Connection built: host=xxxxxx.com port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
... omit

# subscription-manager identity
2023-06-22 12:59:53,613 [INFO] subscription-manager:22006:MainThread @connection.py:909 - Connection built: host=xxxxxxx.com port=443 handler=/rhsm auth=identity_cert ca_dir=/etc/rhsm/ca/ insecure=False
... omit
  • When debug is set to DEBUG
# grep ^default_log_level /etc/rhsm/rhsm.conf
default_log_level = DEBUG

# yum clean all
2023-06-23 13:40:55,968 [DEBUG] yum:12697:MainThread @identity.py:139 - Loading consumer info from identity certificates.
... omit

# subscription-manager identity 
2023-06-23 13:52:03,575 [DEBUG] subscription-manager:13249:MainThread @https.py:56 - Using standard libs to provide httplib and ssl
... omit

Environment

  • Red Hat Enterprise Linux (RHEL) 6 and 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content