Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
*/
public class DefaultMavenArtifactProvider implements MavenArtifactProvider {

private static final Logger LOG = LoggerFactory.getLogger(DefaultMavenArtifactProvider.class);
private static final Logger LOGGER = LoggerFactory.getLogger(DefaultMavenArtifactProvider.class);
private String cacheDirectory;
private boolean log;

Expand Down Expand Up @@ -70,7 +70,7 @@ public Set<String> addArtifactToCatalog(
try {
if (cacheDirectory != null) {
if (log) {
LOG.debug("Using cache directory: {}", cacheDirectory);
LOGGER.debug("Using cache directory: {}", cacheDirectory);
}
System.setProperty("grape.root", cacheDirectory);
}
Expand All @@ -89,7 +89,7 @@ public Set<String> addArtifactToCatalog(
param.put("transitive", false);

if (log) {
LOG.info("Downloading {}:{}:{}", groupId, artifactId, version);
LOGGER.info("Downloading {}:{}:{}", groupId, artifactId, version);
}
Grape.grab(param);

Expand All @@ -101,7 +101,7 @@ public Set<String> addArtifactToCatalog(

} catch (Exception e) {
if (log) {
LOG.warn("Error during add components from artifact {}:{}:{} due {}", groupId, artifactId, version,
LOGGER.warn("Error during add components from artifact {}:{}:{} due {}", groupId, artifactId, version,
e.getMessage(), e);
}
}
Expand All @@ -123,7 +123,7 @@ protected void scanCamelComponents(CamelCatalog camelCatalog, ClassLoader classL
String json = loadComponentJSonSchema(log, classLoader, scheme);
if (json != null) {
if (log) {
LOG.info("Adding component: {}", scheme);
LOGGER.info("Adding component: {}", scheme);
}
camelCatalog.addComponent(scheme, javaType, json);
names.add(scheme);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
*/
public class MavenVersionManager implements VersionManager, Closeable {

private static final Logger LOG = LoggerFactory.getLogger(MavenVersionManager.class);
private static final Logger LOGGER = LoggerFactory.getLogger(MavenVersionManager.class);

private ClassLoader classLoader;
private final ClassLoader groovyClassLoader = new GroovyClassLoader();
Expand Down Expand Up @@ -122,7 +122,7 @@ public boolean loadVersion(String version) {
return true;
} catch (Exception e) {
if (log) {
LOG.warn("Cannot load version {} due {}", version, e.getMessage(), e);
LOGGER.warn("Cannot load version {} due {}", version, e.getMessage(), e);
}
return false;
}
Expand Down Expand Up @@ -152,7 +152,7 @@ public boolean loadRuntimeProviderVersion(String groupId, String artifactId, Str
return true;
} catch (Exception e) {
if (log) {
LOG.warn("Cannot load runtime provider version {} due {}", version, e.getMessage(), e);
LOGGER.warn("Cannot load runtime provider version {} due {}", version, e.getMessage(), e);
}
return false;
}
Expand Down Expand Up @@ -201,7 +201,7 @@ private InputStream doGetResourceAsStream(String name, String version) {
}
} catch (IOException e) {
if (log) {
LOG.warn("Cannot open resource {} and version {} due {}", name, version, e.getMessage(), e);
LOGGER.warn("Cannot open resource {} and version {} due {}", name, version, e.getMessage(), e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
@ApplicationScoped
public class MyRoutes extends RouteBuilder {

private static final Logger LOG = LoggerFactory.getLogger(MyRoutes.class);
private static final Logger LOGGER = LoggerFactory.getLogger(MyRoutes.class);

@Inject
@Uri(value = "seda:a")
Expand All @@ -46,7 +46,7 @@ public class MyRoutes extends RouteBuilder {

@Override
public void configure() {
LOG.info("Adding route from {} to {}", a, b);
LOGGER.info("Adding route from {} to {}", a, b);
from(a).to(b);
}

Expand Down