Skip to content

Conversation

@sjudeng
Copy link
Contributor

@sjudeng sjudeng commented Feb 3, 2017

Log4j should be used for testing but Logback is being used in some modules (janusgraph-es, janusgraph-hadoop, janusgraph-hbase and janusgraph-solr). In these cases the log4j.properties test resources are ignored and console logging is too verbose. In a standard test run (mvn verify) console logging exceeds 75M. With the fixes in this PR the logging output for the same run is about 3M.

Note the solution was already present in janusgraph-cassandra (see logging comment in janusgraph-cassandra/pom.xml) and this PR just propagates that into the offending modules. More minor updates were to clean up some of the test log4j.properties files and ensure that these were used in relevant tests (e.g. log4j.configuration file).

Signed-off-by: sjudeng <sjudeng@users.noreply.github.com>
Signed-off-by: sjudeng <sjudeng@users.noreply.github.com>
@janusgraph-bot janusgraph-bot added the cla: yes This PR is compliant with the CLA label Feb 3, 2017
Copy link

@amcp amcp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor fixes, otherwise looks good

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.2</version>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we pull this version into a property someplace like the parent pom?

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.2</version>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pull into parent pom property?

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.2</version>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parent pom property

<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.2</version>
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

parent pom property

Signed-off-by: sjudeng <sjudeng@users.noreply.github.com>
@sjudeng
Copy link
Contributor Author

sjudeng commented Feb 4, 2017

Thanks and requested updates are done

@mbrukman mbrukman merged commit 0a2a117 into JanusGraph:master Feb 5, 2017
@sjudeng sjudeng deleted the test-logging-cleanup branch February 7, 2017 02:07
micpod pushed a commit to micpod/janusgraph that referenced this pull request Nov 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/testing cla: yes This PR is compliant with the CLA

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants