protected void logOpen() { logger.info("Opening secure channel [{}] encoding={}", ChannelUtils.getLocation(username, hostname), encoding); logger.debug("Private key files - {}", privateKeys.size()); logger.debug("Private key strings - {}", privateKeyStrings.size()); logger.debug("Private key config file - {}", config); logger.debug("Private key config file use - {}", useConfigFile); logger.debug("Include default private key locations - {}", includeDefaultPrivateKeyLocations); logger.debug("Known hosts file - {}", knownHosts); logger.debug("Port - {}", port); logger.debug("Connect timeout - {}", connectTimeout); logger.debug("Strict host key checking - {}", strictHostKeyChecking); logger.debug("Configuring channel with {} custom options", options.size()); PropertyUtils.debug(options); }
protected void logOpen() { logger.info("Opening secure channel [{}] encoding={}", ChannelUtils.getLocation(username, hostname), encoding); logger.debug("Private key files - {}", CollectionUtils.toEmptyList(privateKeys).size()); logger.debug("Private key strings - {}", CollectionUtils.toEmptyList(privateKeyStrings).size()); logger.debug("Private key config file - {}", config); logger.debug("Private key config file use - {}", useConfigFile); logger.debug("Include default private key locations - {}", includeDefaultPrivateKeyLocations); logger.debug("Known hosts file - {}", knownHosts); logger.debug("Port - {}", port); logger.debug("Connect timeout - {}", connectTimeout); logger.debug("Strict host key checking - {}", strictHostKeyChecking); logger.debug("Configuring channel with {} custom options", PropertyUtils.toEmpty(options).size()); if (options != null) { PropertyUtils.debug(options); } }
@Deprecated public static PropertySource<?> getGlobalPropertySource(String name, List<org.kuali.common.util.property.ProjectProperties> pps) { // Load them from disk Properties source = PropertyUtils.load(pps); // Add in system/environment properties Properties globalSource = PropertyUtils.getGlobalProperties(source); logger.debug("Before prepareContextProperties()"); PropertyUtils.debug(globalSource); // Prepare them so they are ready for use PropertyUtils.prepareContextProperties(globalSource); logger.debug("After prepareContextProperties()"); PropertyUtils.debug(globalSource); // Return a PropertySource backed by the properties return new PropertiesPropertySource(name, globalSource); }
@Override public Properties init() { Assert.notNull(helper, "helper is null"); Properties global = getGlobalProperties(locationHelperProperties); this.globalPropertiesMode = resolve(globalPropertiesMode, global); this.missingLocationsMode = resolve(missingLocationsMode, global); logger.info("Global properties mode - " + globalPropertiesMode); logger.info("Missing locations mode - " + missingLocationsMode); this.encoding = resolve(encoding, global); this.organizationGroupId = resolve(organizationGroupId, global); validateGlobalPropertiesMode(globalPropertiesMode); GlobalPropertiesMode gpm = GlobalPropertiesMode.valueOf(globalPropertiesMode); this.locationHelperProperties = getLocationHelperProperties(locationHelperProperties, gpm); logger.info("Property file encoding - " + encoding); logger.info("Using " + locationHelperProperties.size() + " properties to assist with property loading."); validate(); if (logger.isDebugEnabled()) { PropertyUtils.debug(locationHelperProperties); } Properties p = new Properties(); p.putAll(PropertyUtils.toEmpty(properties)); p.putAll(PropertyUtils.toEmpty(locationHelperProperties)); return p; }
protected void log() { if (context.isEcho()) { logger.info("Opening secure channel [{}] encoding={}", ChannelUtils.getLocation(context.getUsername(), context.getHostname()), context.getEncoding()); } else { logger.debug("Opening secure channel [{}] encoding={}", ChannelUtils.getLocation(context.getUsername(), context.getHostname()), context.getEncoding()); } logger.debug("Private key files - {}", context.getPrivateKeyFiles().size()); logger.debug("Private key strings - {}", context.getPrivateKeys().size()); logger.debug("Private key config file - {}", context.getConfig()); logger.debug("Private key config file use - {}", context.isUseConfigFile()); logger.debug("Include default private key locations - {}", context.isIncludeDefaultPrivateKeyLocations()); logger.debug("Known hosts file - {}", context.getKnownHosts()); logger.debug("Port - {}", context.getPort()); if (context.getConnectTimeout().isPresent()) { logger.debug("Connect timeout - {}", context.getConnectTimeout().get()); } logger.debug("Strict host key checking - {}", context.isStrictHostKeyChecking()); logger.debug("Configuring channel with {} custom options", context.getOptions().size()); PropertyUtils.debug(context.getOptions()); }