Skip to content

Don't output console.logs in production (don't use console.log directly) #565

Closed
@coopy

Description

@coopy

Plotly.js uses raw console.log statements to print info, warning, and error messages. Instead, it should use an abstract logger so we can silence warnings in production. Something like https://github.com/FormidableLabs/abstract-log that lets us configure a null transport in production for anything but errors.

As an example of this happening, try typing some HTML into the rich annotations editor. Before you've closed the opening tag, svg_text_utils.js spews errors for every update.

open-tag

Metadata

Metadata

Assignees

No one assigned

    Labels

    communitycommunity contribution

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions