Description of problem: occasionally, it is useful to set debug logging on thumbslug. For example, if a user is getting 403 responses, setting debug logging would give better insight into why that is happening. However, it is currently only possible to change the logging output by altering the log4j.properties that gets compiled into the jar. There is no way to do this on an installed thumbslug instance. Instead, thumbslug should read /etc/thumbslug/thumbslug.conf for logging directives, or perhaps /etc/thumbslug/log4j.properties.
commit 451b37f60da18453f251b8132bf10c2e6a91c15c Merge: c8027cb c97512c Author: James Bowes <jbowes> Date: Thu Nov 8 10:51:03 2012 -0400 Merge branch 'alikins/829791_logging_config' Conflicts: src/main/java/org/candlepin/thumbslug/Main.java
sample line to add to /etc/thumbslug/thumbslug.conf: log4j.logger.org.candlepin.thumbslug=DEBUG restarting thumbslug should show some DEBUG error messages with turned on
Verified in the below version: * candlepin-0.7.23-1.el6_3.noarch * candlepin-tomcat6-0.7.23-1.el6_3.noarch * elasticsearch-0.19.9-5.el6_3.noarch * katello-candlepin-cert-key-pair-1.0-1.noarch * katello-certs-tools-1.2.1-1h.el6_3.noarch * katello-cli-1.2.1-12h.el6_3.noarch * katello-cli-common-1.2.1-12h.el6_3.noarch * katello-common-1.2.1-15h.el6_3.noarch * katello-configure-1.2.3-3h.el6_3.noarch * katello-glue-candlepin-1.2.1-15h.el6_3.noarch * katello-headpin-1.2.1-15h.el6_3.noarch * katello-headpin-all-1.2.1-15h.el6_3.noarch * katello-selinux-1.2.1-2h.el6_3.noarch * thumbslug-0.0.28-1.el6_3.noarch * thumbslug-selinux-0.0.28-1.el6_3.noarch Steps: # service thumbslug stop Stopping thumbslug: [ OK ] # service thumbslug status thumbslug is stopped **Added log4j.logger.org.candlepin.thumbslug=DEBUG flag in /etc/thumbslug/thumbslug.conf** # service thumbslug start Starting thumbslug: Feb 11 16:28:01 [main] DEBUG org.candlepin.thumbslug.Main - Daemonizing.. Feb 11 16:28:01 [main] DEBUG org.candlepin.thumbslug.Main - Daemonized, exiting Feb 11 16:28:01 [main] WARN org.candlepin.thumbslug.Main - Shutting down... [ OK ] **Note that the DEBUG message appears** # service thumbslug status thumbslug (pid 23084) is running... **Removed log4j.logger.org.candlepin.thumbslug=DEBUG flag in /etc/thumbslug/thumbslug.conf** # service thumbslug stop Stopping thumbslug: [ OK ] # service thumbslug status thumbslug is stopped # service thumbslug start Starting thumbslug: Feb 11 16:29:31 [main] WARN org.candlepin.thumbslug.Main - Shutting down... [ OK ] **Added log4j.logger.org.candlepin.thumbslug=INFO flag in /etc/thumbslug/thumbslug.conf** # service thumbslug stop Stopping thumbslug: [ OK ] # service thumbslug status thumbslug is stopped # service thumbslug start Starting thumbslug: Feb 11 16:34:41 [main] WARN org.candlepin.thumbslug.Main - Shutting down... [ OK ] **looks like there are no INFO flagged messages while starting Thumbslug**
Verified as per my comment 3 above
Closing out verified bugs from 1.2. Somehow the errata tool missed them.