Skip to content

Commit

Permalink
Clean model generator log
Browse files Browse the repository at this point in the history
  • Loading branch information
pderakhshanfar committed Aug 30, 2019
1 parent 339eb45 commit 1af5174
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,12 @@ public void analyse(List<String> interestingClasses) {
analyseMethod(clazz, entry.getKey(), entry.getValue(), isTest);
savingMethodCallSequences(collectedCallSequencesForCurrentMethod);
}
} else {
LOG.warn("The generated control flow graphs for class {} was empty. We cannot execute manual " +
"analysis withour the control flow graph.", clazz);
}

// else {
// LOG.warn("The generated control flow graphs for class {} was empty. We cannot execute manual " +
// "analysis without the control flow graph.", clazz);
// }
} catch(Exception e) {
LOG.warn("Error in analyzing class {}", clazz, e);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public void testFinished(Description description) {
}
Capturer.clear();
} catch(Exception e) {
LOG.warn("Error in capturing log: ", e);
LOG.warn("Error in capturing log of class {}.",description.getClassName());
}

}
Expand Down
13 changes: 12 additions & 1 deletion botsing-model-generation/src/main/resources/logback.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,21 @@
</encoder>
</appender>

<appender name="STDERR" class="ch.qos.logback.core.ConsoleAppender">
<target>System.err</target>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>WARN</level>
</filter>
<encoder>
<pattern></pattern>
</encoder>
</appender>


<root level="info">
<appender-ref ref="STDOUT" />
<appender-ref ref="STDERR" />
</root>
<logger name="org.evosuite" level="off"/>
<logger name="evo_logger" level="error"/>
<logger name="evo_logger" level="off"/>
</configuration>
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ public class GuidedSinglePointCrossover extends CrossOverFunction {
private static GuidedSearchUtility utility = new GuidedSearchUtility();

Set<GenericAccessibleObject<?>> publicCalls = new HashSet<>();
//
// private SinglePointCrossOver crossover = new SinglePointCrossOver();

public void crossOver(Chromosome parent1, Chromosome parent2) {
if(this.publicCalls.isEmpty()){
Expand Down

0 comments on commit 1af5174

Please sign in to comment.