Skip to content

Too described logging on transport level. #400

Closed

Description

@mangin

Hey there,
I think we have a problem here:
https://github.com/graphql-python/gql/blob/master/gql/transport/aiohttp.py#L333

We writes too many logs on info level.
Maybe we should log them only on debug level?

I know that it's possible to tune it on application level.
But still for me it's a real big surprise that gql library writes so many logs by default.

WDYT?

Activity

  1. mangin commented on Mar 29, 2023

    @mangin
    Author
  2. leszekhanusz commented on Mar 29, 2023

    @leszekhanusz
    Collaborator

    Sorry, this can't be changed as it is a breaking change.
    See Disabling-logs in the docs to modify the log level for gql.

  3. added
    type: question or discussion
    on Mar 29, 2023
  4. mangin commented on Mar 29, 2023

    @mangin
    Author

    Maybe we can change it in the future releases?

    now it's a really verbose. And i don't think that everyone knows how to disable logs and would find this article.
    Thank you for your reply:

    But it could create some problem for production systems. Because now this module generates a lot of logs => someone pays for it => wasting of planet resources (it's a small joke already)

    P.S. for my-own project I already disabled it. But yep it's the first library in my life that logs all traffic by default.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: question or discussion

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions