Coder Social home page Coder Social logo

console.log pollutes stdout about fdk-node HOT 5 CLOSED

fnproject avatar fnproject commented on June 5, 2024
console.log pollutes stdout

from fdk-node.

Comments (5)

treeder avatar treeder commented on June 5, 2024

Or like other languages we should tell people to use console.error(). Trying to think whether all the FDK's should redirect stdout to stderr like you're suggesting.... ???

from fdk-node.

zootalures avatar zootalures commented on June 5, 2024

Yeah I think they should (if they can!)

Java does redirect stdout -> stderr for the same reason (so System.out.printf(..) goes to the function log rather than polluting the call contract)

Thinking that bugs caused by (e.g) an accidental systemout.print are going to be very difficult to debug as you'll just see a random Fn error relating to invalid protocols somwhere.

from fdk-node.

shaunsmith avatar shaunsmith commented on June 5, 2024

There are a number of frameworks that could be used. I had tried a few but didn't invest enough time to determine if anyone of them was ideal. Most seem to be focused on unit testing but one might work for us.

from fdk-node.

rkaw92 avatar rkaw92 commented on June 5, 2024

Hi, is this still an issue now that HTTP with UNIX sockets is used for function I/O instead of stdin/stdout?

from fdk-node.

rdallman avatar rdallman commented on June 5, 2024

it is not, thanks!

from fdk-node.

Related Issues (14)

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.