Commit 1683beb2 authored by Gandalf's avatar Gandalf
Browse files

Replace universe-log with pino in renderer package

- Fix CSP violation caused by universe-log using Function() constructor
  for environment detection (equivalent to eval)
- Fix broken object logging where objects passed as arguments were
  silently dropped from output
- Fix incorrect console method usage (all logs went to console.error)

universe-log (v5.2.0) has been abandoned since August 2019 and has no
CSP-compatible version. Pino is already used elsewhere in denser and
provides proper CSP-safe environment detection using typeof checks.

This also reduces bundle size by ~11KB (universe-log ~15KB -> pino ~4KB).

Fixes #788
parent abf9d09f
Loading
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment