Skip to content

Possibility to disable "[APPSIGNAL]: Started in development mode." #297

Open
@Calamari

Description

@Calamari

Is your feature request related to a problem? Please describe.
Since #274 the message "[APPSIGNAL]: Started in development mode." is logged to console.warn every time the Appsignal class is constructed which bloats the test output in JavaScript tests and in feature Specs, where we throw errors if console logs warnings and errors.

Describe the solution you'd like
It would be great to suppress this warning directly when instantiating the class and without providing a key – since we do not want to log errors in tests.

I am not quite sure, why this has to be logged at all – that is not clear from reading #274. I would also argue that it might be more an info than a warn. But I would propose to either enable this behavior (if really needed) through a config parameter in the constructor, or at least adding a config parameter to suppress this warning (maybe something like environment: "test" to disable it).

And before I forget it: Thanks for this lib, you are doing a grant job.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions