Giter VIP home page Giter VIP logo

Comments (7)

jeromevdl avatar jeromevdl commented on July 18, 2024 1

we can't avoid the runtime to log, unless we catch the exception completely, but we cannot do that, if the function is in error the caller must be aware, so just catch / log (fatal) / rethrow

from powertools-lambda-java.

scottgerring avatar scottgerring commented on July 18, 2024 1

Completed for v2 as part of #1435

from powertools-lambda-java.

scottgerring avatar scottgerring commented on July 18, 2024

The logger aspect could:

  • Catch and log at an appropriate level in a structured fashion
  • Rethrow

We'll get the error twice in the logs - once structured once stdout, but i'd be hesitant to interfere with the runtime itself seeing the exception too.

from powertools-lambda-java.

jeromevdl avatar jeromevdl commented on July 18, 2024

Do we add this to v1 or v2? While I'm working on logging v2, I can do it, but if we do in v1, I let @mriccia.

from powertools-lambda-java.

scottgerring avatar scottgerring commented on July 18, 2024

@mriccia if you feel especially attached to it lets add it in v1, otherwise I don't think we should push new features there as discussed.

from powertools-lambda-java.

scottgerring avatar scottgerring commented on July 18, 2024

@mriccia do you know what you want to do with this?

from powertools-lambda-java.

mriccia avatar mriccia commented on July 18, 2024

IMO we should add it in v2, as I only saw this request from customers once and does not appear to be a big issue

from powertools-lambda-java.

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.