Description of problem: when moving to DEBUG mode in /etc/ovirt-engine/notifier/log4j.xml, 3rd party debug messages are displyed. we can refine the log in such a way it will give us better control on what to log and with what priority. please provide a log4j category to log only notifier code. This way, we can set the default logging level to INFO, except for the specific code of notifier - which will be set (for example) to debug Like it is done in other log4j.xml files. (by yzaslavs) Log: === > [root@lilach-rhel ~]# vi /etc/ovirt-engine/notifier/log4j.xml (set mode to DEBUG) > [root@lilach-rhel ~]# /etc/rc.d/init.d/engine-notifierd restart Printed on cli screen as response to the restart: > Stopping engine-notifier: [ OK ] > Starting engine-notifier: at Tue Dec 4 16:59:46 IST 2012find: failed to > restore initial working directory: Permission denied find: failed to > restore initial working directory: Permission denied find: failed to > restore initial working directory: Permission denied find: failed to > restore initial working directory: Permission denied find: failed to > restore initial working directory: Permission denied [ OK ] > [root@lilach-rhel ~]# DEBUG: JavaMail version 1.4.4-redhat-1 > DEBUG: successfully loaded resource: /META-INF/javamail.default.providers > DEBUG: Tables of loaded providers > DEBUG: Providers Listed By Class Name: > {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com > .sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], > com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun. > mail.smtp.SMTPTransport,Sun Microsystems, Inc], > com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail > .imap.IMAPSSLStore,Sun Microsystems, Inc], > com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail > .pop3.POP3SSLStore,Sun Microsystems, Inc], > com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.ima > p.IMAPStore,Sun Microsystems, Inc], > com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop > 3.POP3Store,Sun Microsystems, Inc]} DEBUG: Providers Listed By Protocol: > {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun > Microsystems, Inc], > imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun > Microsystems, Inc], > smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTranspor > t,Sun Microsystems, Inc], > pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun > Microsystems, Inc], > pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun > Microsystems, Inc], > smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun > Microsystems, Inc]} DEBUG: successfully loaded resource: > /META-INF/javamail.default.address.map
Suggested patch upstream - http://gerrit.ovirt.org/#/c/10501/
On sf-8 It looks similar: [root@istein-32 ~]# DEBUG: JavaMail version 1.4.4-redhat-2 DEBUG: successfully loaded resource: /META-INF/javamail.default.providers DEBUG: Tables of loaded providers DEBUG: Providers Listed By Class Name: {com.sun.mail.smtp.SMTPSSLTransport=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], com.sun.mail.smtp.SMTPTransport=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc], com.sun.mail.imap.IMAPSSLStore=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3SSLStore=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], com.sun.mail.imap.IMAPStore=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], com.sun.mail.pop3.POP3Store=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc]} DEBUG: Providers Listed By Protocol: {imaps=javax.mail.Provider[STORE,imaps,com.sun.mail.imap.IMAPSSLStore,Sun Microsystems, Inc], imap=javax.mail.Provider[STORE,imap,com.sun.mail.imap.IMAPStore,Sun Microsystems, Inc], smtps=javax.mail.Provider[TRANSPORT,smtps,com.sun.mail.smtp.SMTPSSLTransport,Sun Microsystems, Inc], pop3=javax.mail.Provider[STORE,pop3,com.sun.mail.pop3.POP3Store,Sun Microsystems, Inc], pop3s=javax.mail.Provider[STORE,pop3s,com.sun.mail.pop3.POP3SSLStore,Sun Microsystems, Inc], smtp=javax.mail.Provider[TRANSPORT,smtp,com.sun.mail.smtp.SMTPTransport,Sun Microsystems, Inc]} DEBUG: successfully loaded resource: /META-INF/javamail.default.address.map
Closing as duplicate. java mail debug prints are handled at bz 910603 *** This bug has been marked as a duplicate of bug 910603 ***