If you try and create a logger with a conditional in the config and you pass undefined, the sdk will throw an error.
Example:
I was trying to only add a stringifyFunc in some cases as added below, but it was causing a crash when initializing the logger. Uncaught TypeError: this._stringifyFunc is not a function
If you try and create a logger with a conditional in the config and you pass undefined, the sdk will throw an error.
Example: I was trying to only add a
stringifyFunc
in some cases as added below, but it was causing a crash when initializing the logger.Uncaught TypeError: this._stringifyFunc is not a function
JSON stringify and parse will remove any undefined values during the merge