6.2. Enabling Debug Logging
This section describes how to enable debug logging to provide detailed debugging information for Satellite 6.2. Debug logging provides the most detailed log information and can help with troubleshooting issues that can arise with Satellite 6.2 and its components. It is also possible to enable or disable individual loggers for selective logging.
To enable debug logging, modify the
/etc/foreman/settings.yaml
file.
Set the Logging Level to "debug"
By default, the logging level is set toinfo
, as in the following::logging: :level: info
Alter these lines so that they look like this::logging: :level: debug
Warning
Until BZ#1325939 is resolved, setting the sql logging level toerror
is not recommended.Select Individual Logging Types
By default, the end of/etc/foreman/settings.yaml
looks like this:# Individual logging types can be toggled on/off here :loggers:
Alter the/etc/foreman/settings.yaml
file so that it looks like this::loggers: :ldap: :enabled: true :permissions: :enabled: true :sql: :enabled: true
Restart Katello Services
#
katello-service restart
Complete List of Loggers with their Default Values
:app: :enabled: true :ldap: :enabled: false :permissions: :enabled: false :sql: :enabled: false