Add Certs, Docker Build
[aaf/authz.git] / auth / auth-locate / src / main / java / org / onap / aaf / auth / locate / AAF_Locate.java
index 92fc88c..1cf3afb 100644 (file)
@@ -46,6 +46,7 @@ import org.onap.aaf.auth.locate.mapper.Mapper.API;
 import org.onap.aaf.auth.rserv.HttpMethods;
 import org.onap.aaf.auth.server.AbsService;
 import org.onap.aaf.auth.server.JettyServiceStarter;
+import org.onap.aaf.auth.server.Log4JLogIt;
 import org.onap.aaf.cadi.CadiException;
 import org.onap.aaf.cadi.Locator;
 import org.onap.aaf.cadi.LocatorException;
@@ -230,10 +231,11 @@ public class AAF_Locate extends AbsService<AuthzEnv, AuthzTrans> {
        }
 
        public static void main(final String[] args) {
-               PropAccess propAccess = new PropAccess(args);
                try {
+                       Log4JLogIt logIt = new Log4JLogIt(args, "locate");
+                       PropAccess propAccess = new PropAccess(logIt,args);
+
                        AAF_Locate service = new AAF_Locate(new AuthzEnv(propAccess));
-//                     service.env().setLog4JNames("log4j.properties","authz","gw","audit","init","trace");
                        JettyServiceStarter<AuthzEnv,AuthzTrans> jss = new JettyServiceStarter<AuthzEnv,AuthzTrans>(service);
                        jss.start();
                } catch (Exception e) {