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

Jib Gradle plugin disables Google HTTP Client logging #2356

Closed
chanseokoh opened this issue Mar 24, 2020 · 0 comments · Fixed by #2357
Closed

Jib Gradle plugin disables Google HTTP Client logging #2356

chanseokoh opened this issue Mar 24, 2020 · 0 comments · Fixed by #2357
Assignees
Milestone

Comments

@chanseokoh
Copy link
Member

chanseokoh commented Mar 24, 2020

There have been many reports that Gradle users have difficulty generating Google HTTP Client logging following our instructions.

From my cursory experiment, this symptom has gotten worse with more recent Gradle. This is in line with the first report that downgrading to 4.10.3 worked.

The cause was our calling TaskCommon.disableHttpLogging().

Some interesting observations:

  • Looks like disableHttpLogging() has a lasting effect on a running Gradle daemon. Once it is called, Gradle doesn't generate logs even if I remove disableHttpLogging(). Stopping daemons with ./gradlew --stop and trying again works. This explains the observation in the first report that using --no-daemon helps.
  • If we don't call disableHttpLogging(), just passing --info to Gradle makes Google HTTP Client to log network traffic. Therefore, it is still desirable to disable logging in usual cases.

Additional info: #2357 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant