isomerpages / isomercms-backend

A static website builder and host for the Singapore Government
5 stars 1 forks source link

feat(pino): removes extraneous stuff #1212

Closed seaerchin closed 7 months ago

seaerchin commented 7 months ago

Problem

we don't need to differentiate between prod/console loggers due to how pino implements it as a transport (thx pino) so we removed the whole logger folder.

additionally, we shifted the prettifying to be on the cli side so that there's no logic at the code level.

Solution

  1. shift conditional to just invoking via cli
  2. set logInjection to be dynamic based on the env as otherwise the dd object would be appended to every single pino log to the console