Skip to content

[Bug]: Profiler constructor has no guardrails for what it's constructed from #2091

@maverick1872

Description

@maverick1872

🔎 Search Terms

Profiler, constructor

The problem

The constructor for our Profiler has no guardrails for what it considers to be a valid argument to construct a Profiler from. As such there is the potential for this being used incorrectly. As such we should add some guardrails to this to ensure it's leveraged correctly in all situations.

What version of Winston presents the issue?

latest

What version of Node are you using?

v16

If this worked in a previous version of Winston, which was it?

No response

Minimum Working Example

No response

Additional information

Original discussion regarding the issue:
#1989 (comment)

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