Giter VIP home page Giter VIP logo

Comments (4)

netmilk avatar netmilk commented on August 26, 2024

As a quick remediation I propose to use console.warn() and console.error() instead of console.log() at least for warn and error in output.ts

$ cat warn-test.js
console.log("this is a standard output")
console.warn("this is a warning")
console.error("this is an error")
$ node warn-test.js 2>/dev/null
this is a standard output

from apify-cli.

vladfrangu avatar vladfrangu commented on August 26, 2024

Feel free to PR the changes, because I agree and they look correct!

from apify-cli.

B4nan avatar B4nan commented on August 26, 2024

Yeah, good point.

from apify-cli.

netmilk avatar netmilk commented on August 26, 2024

The same goes for the info level:

$ cat storage/key_value_stores/default/INPUT.json
{
  "urls": [
    "http://google.com"
  ]
}
$ apify actor:get-input 2>/dev/null

Info: Making sure that Apify CLI is up to date...
Info: Apify CLI is up to date 👍

{
  "urls": [
    "http://google.com"
  ]
}
Info: Apify collects telemetry data about general usage of Apify CLI to help us improve the product. This feature is enabled by default, and you can disable it by setting the "APIFY_CLI_DISABLE_TELEMETRY" environment variable to "1". You can find more information about our telemetry in https://docs.apify.com/cli/docs/telemetry.
INPUT: http://google.com

That isn't a parseable JSON output.

from apify-cli.

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.