19.3. Enabling Debug Logging
WARN, INFO, and Error. Different components provide varying levels of logging.
To enable debug logging for these components, modify the /usr/share/foreman/config/environments/production.rb file to ensure the following line exists:
config.log_level = :debug
# service foreman restart # service foreman-tasks restart
/var/log/foreman/production.log file.
See https://docs.puppetlabs.com/references/latest/configuration.html#loglevel for information on how to enable debug logging for Puppet. The Puppet log files are saved to the /var/log/puppet/logs directory.
See https://pulp.readthedocs.org/en/latest/user-guide/troubleshooting.html for initial information on how to enable logging for Pulp.
Procedure 19.1. To Ensure Successful Debug Logging for Pulp:
- Ensure that
rsyslogallows debug log files to be written to/var/log/messages, or redirect the log files to another directory. - In the
/etc/pulp/server.conffile, change the following line:# log_level: INFO to: log_level: DEBUG
- Restart the required services:
# for i in pulp_resource_manager pulp_workers pulp_celerybeat; do service $i restart; done
Note
Debug and you are using rsyslog, you might encounter a situation where many log entries are discarded and missed. If this occurs, create a new log configuration file as follows:
# vi /etc/rsyslog.d/pulp.conf :programname, startswith, "pulp" -/var/log/pulp.log & ~
# service rsyslog restart # for i in pulp_resource_manager pulp_workers pulp_celerybeat; do service $i restart; done
/var/log/pulp.log file for debug output.
To enable debug logging for Candlepin, add the following line to the /etc/candlepin/candlepin.conf file:
log4j.logger.org.candlepin=DEBUG
tomcat6; on Red Hat Enterprise Linux 7, the service is called tomcat.
# service tomcat6 restart
/var/log/candlepin/candlepin.log file.
To enable debug logging for Capsule, uncomment the DEBUG line in the /etc/foreman-proxy/settings.yml file:
# WARN, DEBUG, Error, Fatal, INFO, UNKNOWN :log_level: DEBUG
foreman-proxy service:
# service foreman-proxy restart
/var/log/foreman-proxy/proxy.log file.
To enable debug logging for hammer, comment out the log_level entry in the /etc/hammer/cli_config.yml file, as follows:
# :log_level: 'error' `
~/.foreman/log/hammer.log file. You can configure the log file directory in the cli_config.yml file.

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.