Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change log level for compute() logs from INFO to DEBUG. #62

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
3 changes: 2 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<groupId>com.mulesoft.services</groupId>
<artifactId>mule-validation-sonarqube-plugin</artifactId>
<version>1.0.6</version>
<packaging>jar</packaging>
<packaging>sonar-plugin</packaging>

<url>http://maven.apache.org</url>
<description>Sonar Plugin for Mule Projects</description>
Expand Down Expand Up @@ -55,6 +55,7 @@
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-slf4j-impl</artifactId>
<version>2.17.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>jaxen</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public MeasureComputerDefinition define(MeasureComputerDefinitionContext defCont

@Override
public void compute(MeasureComputerContext context) {
logger.info("Computing Mule Flow Size");
if (logger.isDebugEnabled()) {
logger.debug("Computing Mule Flow Size");
}

if (context.getComponent().getType() != Component.Type.FILE) {
int sumFlows = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,10 @@ public MeasureComputerDefinition define(MeasureComputerDefinitionContext def) {

@Override
public void compute(MeasureComputerContext context) {
logger.info("Computing MuleSizeRating");
if (logger.isDebugEnabled()) {
logger.debug("Computing MuleSizeRating");

}
Measure flows = context.getMeasure(MuleMetrics.FLOWS.key());
Measure subflows = context.getMeasure(MuleMetrics.SUBFLOWS.key());
int totalNumberOfFlows = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ public MeasureComputerDefinition define(MeasureComputerDefinitionContext defCont

@Override
public void compute(MeasureComputerContext context) {
logger.info("Computing Mule SubFlow Size");
if (logger.isDebugEnabled()) {
logger.debug("Computing Mule SubFlow Size");
}

if (context.getComponent().getType() != Component.Type.FILE) {
int sumFlows = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ public MeasureComputerDefinition define(MeasureComputerDefinitionContext defCont

@Override
public void compute(MeasureComputerContext context) {
logger.info("Computing Mule Transformation Count");
if (logger.isDebugEnabled()) {
logger.debug("Computing Mule Transformation Count");
}

if (context.getComponent().getType() != Component.Type.FILE) {
int sumTransformations = 0;
Expand Down