You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2020/04/23 00:47:04 UTC
[GitHub] [geode] demery-pivotal opened a new pull request #4988: GEODE-7851: Add slf4j implementation to Pulse
demery-pivotal opened a new pull request #4988:
URL: https://github.com/apache/geode/pull/4988
Pulse was not logging because its war file had no slf4j implementation.
This commit adds the log4j2 implementation to the war file.
Authored-by: Dale Emery <de...@pivotal.io>
Thank you for submitting a contribution to Apache Geode.
In order to streamline the review of the contribution we ask you
to ensure the following steps have been taken:
### For all changes:
- [ ] Is there a JIRA ticket associated with this PR? Is it referenced in the commit message?
- [ ] Has your PR been rebased against the latest commit within the target branch (typically `develop`)?
- [ ] Is your initial contribution a single, squashed commit?
- [ ] Does `gradlew build` run cleanly?
- [ ] Have you written or updated unit tests to verify your changes?
- [ ] If adding new dependencies to the code, are these dependencies licensed in a way that is compatible for inclusion under [ASF 2.0](http://www.apache.org/legal/resolved.html#category-a)?
### Note:
Please ensure that once the PR is submitted, check Concourse for build issues and
submit an update to your PR as soon as possible. If you need help, please send an
email to dev@geode.apache.org.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] jmelchio commented on issue #4988: GEODE-7851: Add slf4j implementation to Pulse
Posted by GitBox <gi...@apache.org>.
jmelchio commented on issue #4988:
URL: https://github.com/apache/geode/pull/4988#issuecomment-618402980
> we probably need to add a test to assert the existence of the pulse.log in the geode-assembly module. Will help you add one tomorrow.
It appears that the `pulse.log` file is automatically created in the root directory of the locator.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] pivotal-jbarrett commented on a change in pull request #4988: GEODE-7851: Add slf4j implementation to Pulse
Posted by GitBox <gi...@apache.org>.
pivotal-jbarrett commented on a change in pull request #4988:
URL: https://github.com/apache/geode/pull/4988#discussion_r413983675
##########
File path: geode-pulse/build.gradle
##########
@@ -95,6 +94,9 @@ dependencies {
// added only to ensure common version with other geode modules
runtimeOnly('org.slf4j:slf4j-api')
+ runtimeOnly('org.apache.logging.log4j:log4j-slf4j-impl') {
+ exclude module: 'slf4j-api'
Review comment:
Why are we including the slf4j above and excluding it below. If impl is runtime only then all its deps will also be runtime only. We should just collapse this into a single include.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] demery-pivotal commented on a change in pull request #4988: GEODE-7851: Add slf4j implementation to Pulse
Posted by GitBox <gi...@apache.org>.
demery-pivotal commented on a change in pull request #4988:
URL: https://github.com/apache/geode/pull/4988#discussion_r414010075
##########
File path: geode-pulse/build.gradle
##########
@@ -95,6 +94,9 @@ dependencies {
// added only to ensure common version with other geode modules
runtimeOnly('org.slf4j:slf4j-api')
+ runtimeOnly('org.apache.logging.log4j:log4j-slf4j-impl') {
+ exclude module: 'slf4j-api'
Review comment:
I'll declare both dependencies explicitly and remove the exclusion.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] pivotal-jbarrett commented on a change in pull request #4988: GEODE-7851: Add slf4j implementation to Pulse
Posted by GitBox <gi...@apache.org>.
pivotal-jbarrett commented on a change in pull request #4988:
URL: https://github.com/apache/geode/pull/4988#discussion_r414010446
##########
File path: geode-pulse/build.gradle
##########
@@ -95,6 +94,9 @@ dependencies {
// added only to ensure common version with other geode modules
runtimeOnly('org.slf4j:slf4j-api')
+ runtimeOnly('org.apache.logging.log4j:log4j-slf4j-impl') {
+ exclude module: 'slf4j-api'
Review comment:
Our BOM binds the version regardless of how it is imported. You can verify versions with ‘dependencies’ target. https://docs.gradle.org/current/userguide/viewing_debugging_dependencies.html
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] jinmeiliao commented on a change in pull request #4988: GEODE-7851: Add slf4j implementation to Pulse
Posted by GitBox <gi...@apache.org>.
jinmeiliao commented on a change in pull request #4988:
URL: https://github.com/apache/geode/pull/4988#discussion_r414006325
##########
File path: geode-pulse/build.gradle
##########
@@ -95,6 +94,9 @@ dependencies {
// added only to ensure common version with other geode modules
runtimeOnly('org.slf4j:slf4j-api')
+ runtimeOnly('org.apache.logging.log4j:log4j-slf4j-impl') {
+ exclude module: 'slf4j-api'
Review comment:
I believe by declaring `runtimeOnly('org.slf4j:slf4j-api')` explicitly will use the version we chose specifically, if we only do `runtimeOnly('org.apache.logging.log4j:log4j-slf4j-impl')`, then the version will depend on whatever version log4j-slf4j-impl uses.
doing this:
runtimeOnly('org.slf4j:slf4j-api')
runtimeOnly('org.apache.logging.log4j:log4j-slf4j-impl')
will end up using the versions we declare for both jars.
If I understand how gradle dependency works.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [geode] demery-pivotal commented on a change in pull request #4988: GEODE-7851: Add slf4j implementation to Pulse
Posted by GitBox <gi...@apache.org>.
demery-pivotal commented on a change in pull request #4988:
URL: https://github.com/apache/geode/pull/4988#discussion_r414016843
##########
File path: geode-pulse/build.gradle
##########
@@ -95,6 +94,9 @@ dependencies {
// added only to ensure common version with other geode modules
runtimeOnly('org.slf4j:slf4j-api')
+ runtimeOnly('org.apache.logging.log4j:log4j-slf4j-impl') {
+ exclude module: 'slf4j-api'
Review comment:
With or without the explicit dependency on slf4j-api, the scan shows that we get version 2.13.1. So I'll leave it out.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org