mirror of
https://github.com/20kaushik02/spotify-manager.git
synced 2026-01-25 06:04:05 +00:00
chain pruning
This commit is contained in:
@@ -13,7 +13,7 @@ const metaFormat = (meta: object) => {
|
||||
const logFormat = printf(({ level, message, timestamp, stack, ...meta }) => {
|
||||
const errorObj: Error = meta["error"] as Error;
|
||||
if (errorObj) {
|
||||
const stackStr = errorObj["stack"];
|
||||
const stackStr = errorObj["stack"] ?? "";
|
||||
return (
|
||||
`${timestamp} [${level.toUpperCase()}]: ${message}` + // line 1
|
||||
`${metaFormat(errorObj)}\n` + // metadata
|
||||
|
||||
Reference in New Issue
Block a user