Skip to content

Console.log|warn|error has opt-in|out feature #843

@peterpeterparker

Description

@peterpeterparker

Is your feature request related to a problem? Please describe.

e.g. the function request of the agent warn in case of errors.

 console.warn(`Expected to find result for path ${path}, but instead found nothing.`);

While this might be hidden in a browser based environment, this can become annoying in a NodeJS environment when the caller handles the errors by themselves.

Concretely: in Juno CLI agent-js adds unexcepted outputs to the terminal.

Describe the solution you'd like
Any console output should be an opt-in or opt-out feature.

Side note:
Btw. I would even remove any information message (console.log) from the library for best performance.

Sub-issues

Metadata

Metadata

Assignees

No one assigned

    Labels

    backlogThis issue is accepted and assigned to someone

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions