X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=auth%2Fauth-core%2Fsrc%2Fmain%2Fjava%2Forg%2Fonap%2Faaf%2Fauth%2Forg%2FFileMailer.java;h=6a648a8aec7898c76feb46dfd8e193ec21bd2527;hb=e3163b2d5609753f874e2f52fd5ef67fa063af7a;hp=2e3801ed9685d8817f50fed937536659430a59cb;hpb=68a514e92ea55e70241dc93cc5e9e46d3fc1b6c7;p=aaf%2Fauthz.git diff --git a/auth/auth-core/src/main/java/org/onap/aaf/auth/org/FileMailer.java b/auth/auth-core/src/main/java/org/onap/aaf/auth/org/FileMailer.java index 2e3801ed..6a648a8a 100644 --- a/auth/auth-core/src/main/java/org/onap/aaf/auth/org/FileMailer.java +++ b/auth/auth-core/src/main/java/org/onap/aaf/auth/org/FileMailer.java @@ -47,7 +47,10 @@ public class FileMailer implements Mailer { throw new APIException("MAIL_FROM property is required for Email Notifications"); } String env = access.getProperty("CASS_ENV", "UNKNOWN"); - String logdir = access.getProperty(env+".LOG_DIR", "logs/"+env); + String logdir = access.getProperty("LOG_DIR",null); + if(logdir==null) { + logdir=access.getProperty(env+".LOG_DIR", "logs/"+env); + } dir = Paths.get(logdir+"/email/"+Chrono.dateOnlyStamp()); if(!Files.exists(dir)) { try {