Code Monkey home page Code Monkey logo

Comments (6)

johanbrandhorst avatar johanbrandhorst commented on June 10, 2024 1

I'd consider it a separate issue, if you don't mind. If we could tie it to the existing option that would be great too.

from go-grpc-middleware.

johanbrandhorst avatar johanbrandhorst commented on June 10, 2024

Hi. You need to use one of the constants as options: https://github.com/grpc-ecosystem/go-grpc-middleware/pull/631/files#diff-8c12c7fac52459b44598f215bb359e03c4ac3678de743b90e4a88c9ad9b03272R42-R47. It isn't a general purpose log disabling option. We could definitely do with some better documentation here. CC @coleenquadros

from go-grpc-middleware.

johanbrandhorst avatar johanbrandhorst commented on June 10, 2024

Some better docs have been added to this method, hopefully that will avoid confusion around this in the future.

from go-grpc-middleware.

frankgreco avatar frankgreco commented on June 10, 2024

What would be the recommended way to accomplish what I'm trying to accomplish?

from go-grpc-middleware.

johanbrandhorst avatar johanbrandhorst commented on June 10, 2024

It's not possible today AFAIK, but maybe it could be added if it makes sense? I often recommend users just fork if they have very specialized needs, but if you think it makes sense as a general purpose option we could consider that too.

from go-grpc-middleware.

frankgreco avatar frankgreco commented on June 10, 2024

Good to know. I think this use case would be pretty common, "i want to know every time a message is sent but I don't want to log the request or response as it could contain PII"

Would we re-open this as a feature request or a new issue?

from go-grpc-middleware.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.