private static Properties loadProperties()

in audit-service/src/main/java/org/apache/logging/log4j/audit/AuditService.java [58:78]


    private static Properties loadProperties() {
        Properties props = new Properties();
        String env = System.getProperty("env");
        if (env == null) {
            env = System.getenv("env");
        }
        StringBuilder sb = new StringBuilder("catalog-");
        if (env != null) {
            sb.append(env);
        }
        sb.append("config.properties");
        InputStream is = ProfileUtil.class.getClassLoader().getResourceAsStream(sb.toString());
        if (is != null) {
            try {
                props.load(is);
            } catch (IOException ioe) {
                // Ignore the error.
            }
        }
        return props;
    }