eagle-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jhsenjaliya <...@git.apache.org>
Subject [GitHub] eagle pull request #941: [EAGLE-968] Fix for email issue in 0.5 eagle versio...
Date Tue, 06 Jun 2017 20:28:57 GMT
Github user jhsenjaliya commented on a diff in the pull request:

    https://github.com/apache/eagle/pull/941#discussion_r120471741
  
    --- Diff: eagle-core/eagle-alert-parent/eagle-alert/alert-engine/src/main/java/org/apache/eagle/alert/engine/publisher/email/EagleMailClient.java
---
    @@ -54,23 +54,24 @@ public EagleMailClient(final Properties config) {
                 velocityEngine = new VelocityEngine();
                 velocityEngine.setProperty(RuntimeConstants.RESOURCE_LOADER, "classpath");
                 velocityEngine.setProperty("classpath.resource.loader.class", ClasspathResourceLoader.class.getName());
    +            velocityEngine.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM_CLASS,Log4JLogChute.class.getName());
    +            velocityEngine.setProperty("runtime.log.logsystem.log4j.logger", LOG.getName());
                 velocityEngine.init();
     
                 config.put("mail.transport.protocol", "smtp");
                 if (Boolean.parseBoolean(config.getProperty(AlertEmailConstants.CONF_MAIL_AUTH)))
{
                     session = Session.getInstance(config, new Authenticator() {
                         protected PasswordAuthentication getPasswordAuthentication() {
                             return new PasswordAuthentication(
    -                            config.getProperty(AlertEmailConstants.CONF_AUTH_USER),
    -                            config.getProperty(AlertEmailConstants.CONF_AUTH_PASSWORD)
    -                        );
    +                                config.getProperty(AlertEmailConstants.CONF_AUTH_USER),
    --- End diff --
    
    pls remove this alignment change.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message