Skip to content

Incorrect logging level for the HTTP client #97

Open

Description

@mariuszdubielecki

In the HTTP client class com.braintreegateway.util.Http it is used INFO log level for logging every request which is sent to Braintree. This would produce a certain amount of logs on the server.

When you look at the documentation for INFO level java.util.logginghttps://docs.oracle.com/javase/8/docs/api/java/util/logging/Level.html#INFO

It says Typically INFO messages will be written to the console or its equivalent. So the INFO level should only be used for reasonably significant messages that will make sense to end users and system administrators.

I don't believe that sending a request to Braintree is the "significant message". It may be useful for debugging issues but not for every day usage.

Activity

  1. hollabaq86 commented on Jan 19, 2021

    @hollabaq86
    Contributor

    👋 @mariuszdubielecki thanks for reaching out! You do raise a good point around our logging. We're going to leave this open and flag for review when we work on the next major version of this SDK.

  2. hollabaq86 commented on May 2, 2022

    @hollabaq86
    Contributor

    for internal note-keeping, ticket 719

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions