[Bug]: Profiler constructor has no guardrails for what it's constructed from #2091
Labels
Bug
Groomed
Issue has been reviewed and is ready for handling
Help Wanted
Additional help desired from the community
Important
Needs Investigation
🔎 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)
The text was updated successfully, but these errors were encountered: