-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Ensure Log4j is used for testing #77
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
Conversation
… for test logging
Signed-off-by: sjudeng <sjudeng@users.noreply.github.com>
Signed-off-by: sjudeng <sjudeng@users.noreply.github.com>
amcp
left a comment
There was a problem hiding this 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
janusgraph-es/pom.xml
Outdated
| <dependency> | ||
| <groupId>ch.qos.logback</groupId> | ||
| <artifactId>logback-classic</artifactId> | ||
| <version>1.1.2</version> |
There was a problem hiding this comment.
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?
janusgraph-hadoop-parent/pom.xml
Outdated
| <dependency> | ||
| <groupId>ch.qos.logback</groupId> | ||
| <artifactId>logback-classic</artifactId> | ||
| <version>1.1.2</version> |
There was a problem hiding this comment.
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?
janusgraph-hbase-parent/pom.xml
Outdated
| <dependency> | ||
| <groupId>ch.qos.logback</groupId> | ||
| <artifactId>logback-classic</artifactId> | ||
| <version>1.1.2</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
parent pom property
janusgraph-solr/pom.xml
Outdated
| <dependency> | ||
| <groupId>ch.qos.logback</groupId> | ||
| <artifactId>logback-classic</artifactId> | ||
| <version>1.1.2</version> |
There was a problem hiding this comment.
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>
|
Thanks and requested updates are done |
Ensure Log4j is used for testing
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.configurationfile).