Skip to content

use debug library instead of console.error  #6

@jwickens

Description

@jwickens

I get a cryptic: Request failed: eddd8e62-a6b7-4835-b5a2-5748cd529542 on my console while using my app using WVA client-sdk. I'm using a dozen different libraries that could be generating 'request failed'.

I tracked down this message to client-sdk's line 109 on src/sdk.js.

Luckily I figured it was the WVA client-sdk because the other dozen different libraries use the "debug" library which

A) lets me turn debug on and off for libraries
B) tells me which package generated the message

I suggest implementing a proper logging system because no hygenic dev likes their console polluted with random messages.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions