doc(*): Clean loggers

fix writing extensions format
This commit is contained in:
Sparow199
2019-11-17 19:06:44 +01:00
committed by Guillaume Smet
parent 746467a161
commit 829f5171d1
4 changed files with 9 additions and 9 deletions

View File

@@ -1768,7 +1768,7 @@ An example of parsing a XML config file using JAXB is shown in the `TestProcesso
Unmarshaller unmarshaller = context.createUnmarshaller();
InputStream is = getClass().getResourceAsStream("/config.xml"); <1>
if (is != null) {
log.infof("Have XmlConfig, loading");
log.info("Have XmlConfig, loading");
XmlConfig config = (XmlConfig) unmarshaller.unmarshal(is); <2>
...
}
@@ -1854,7 +1854,7 @@ You can use the `io.quarkus.arc.runtime.BeanContainer` interface to interact wit
public void configureBeans(BeanContainer beanContainer, Class<IConfigConsumer> beanClass,
TestBuildAndRunTimeConfig buildTimeConfig,
TestRunTimeConfig runTimeConfig) {
log.infof("Begin BeanContainerListener callback\n");
log.info("Begin BeanContainerListener callback\n");
IConfigConsumer instance = beanContainer.instance(beanClass); <4>
instance.loadConfig(buildTimeConfig, runTimeConfig); <5>
log.infof("configureBeans, instance=%s\n", instance);
@@ -1881,9 +1881,9 @@ A common purpose for an extension is to integrate a non-CDI aware service into t
Unmarshaller unmarshaller = context.createUnmarshaller();
InputStream is = getClass().getResourceAsStream("/config.xml");
if (is != null) {
log.infof("Have XmlConfig, loading");
log.info("Have XmlConfig, loading");
XmlConfig config = (XmlConfig) unmarshaller.unmarshal(is);
log.infof("Loaded XmlConfig, creating service");
log.info("Loaded XmlConfig, creating service");
RuntimeValue<RuntimeXmlConfigService> service = recorder.initRuntimeService(config); //<1>
serviceBuildItem = new RuntimeServiceBuildItem(service); //<3>
}
@@ -2052,7 +2052,7 @@ Objects created during the build phase that are passed into the runtime need to
There is a `io.quarkus.runtime.ObjectSubstitution` interface that can be implemented to tell Quarkus how to handle such classes. An example implementation for the `DSAPublicKey` is shown here:
.DSAPublicKeyObjectSubstitution Example
[source,bash]
[source,java]
----
package io.quarkus.extest.runtime.subst;
@@ -2112,7 +2112,7 @@ An extension registers this substitution by producing an `ObjectSubstitutionBuil
ObjectSubstitutionBuildItem keysub = new ObjectSubstitutionBuildItem(holder);
substitutions.produce(keysub);
log.infof("loadDSAPublicKey run");
log.info("loadDSAPublicKey run");
return new PublicKeyBuildItem(publicKey);
}
----

View File

@@ -97,7 +97,7 @@ class InfinispanClientProcessor {
if (stream == null) {
properties = new Properties();
if (log.isTraceEnabled()) {
log.tracef("There was no hotrod-client.properties file found - using defaults");
log.trace("There was no hotrod-client.properties file found - using defaults");
}
} else {
try {

View File

@@ -112,7 +112,7 @@ public class QuarkusIdentityProviderManagerImpl implements IdentityProviderManag
List<IdentityProvider<T>> providers, T request, AuthenticationRequestContext context) {
if (pos == providers.size()) {
//we failed to authentication
log.debugf("Authentication failed as providers would authenticate the request");
log.debug("Authentication failed as providers would authenticate the request");
CompletableFuture<SecurityIdentity> cf = new CompletableFuture<>();
cf.completeExceptionally(new AuthenticationFailedException());
return cf;

View File

@@ -57,7 +57,7 @@ public class KeyFactoryEndpoint {
log.infof("Loaded SHA256withRSA: %s", sha256withRSA);
//log.infof("Loaded SHA256withRSA: %s, %s", sha256withRSA, sha256withRSA.getProvider());
sha256withRSA.initVerify(pk);
log.infof("Initialized SHA256withRSA");
log.info("Initialized SHA256withRSA");
return true;
}