Skip to content

Commit 98cf75e

Browse files
fix: update logger (CORE-5217)
1 parent 59ac716 commit 98cf75e

File tree

3 files changed

+78
-30
lines changed

3 files changed

+78
-30
lines changed

logger.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
const Logger = require('@voiceflow/logger');
44

55
// eslint-disable-next-line no-process-env
6-
const options = ['local', 'test'].includes(process.env.NODE_ENV) ? { level: 'info', stackTrace: true, pretty: true } : {};
6+
const options = ['local', 'test'].includes(process.env.NODE_ENV) ? { level: 'info', pretty: true } : {};
77

88
// eslint-disable-next-line new-cap
99
const log = new Logger.default(options);

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
}
1313
},
1414
"dependencies": {
15-
"@voiceflow/logger": "^1.4.2",
15+
"@voiceflow/logger": "1.5.2",
1616
"@voiceflow/verror": "^1.1.0",
1717
"bluebird": "^3.7.2",
1818
"chai": "^4.2.0",

yarn.lock

Lines changed: 76 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,13 @@
414414
resolved "https://registry.yarnpkg.com/@sinonjs/text-encoding/-/text-encoding-0.7.1.tgz#8da5c6530915653f3a1f38fd5f101d8c3f8079c5"
415415
integrity sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ==
416416

417+
"@types/cls-hooked@^4.3.1":
418+
version "4.3.3"
419+
resolved "https://registry.yarnpkg.com/@types/cls-hooked/-/cls-hooked-4.3.3.tgz#c09e2f8dc62198522eaa18a5b6b873053154bd00"
420+
integrity sha512-gNstDTb/ty5h6gJd6YpSPgsLX9LmRpaKJqGFp7MRlYxhwp4vXXKlJ9+bt1TZ9KbVNXE+Mbxy2AYXcpY21DDtJw==
421+
dependencies:
422+
"@types/node" "*"
423+
417424
"@types/color-name@^1.1.1":
418425
version "1.1.1"
419426
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"
@@ -484,10 +491,10 @@
484491
"@types/pino-std-serializers" "*"
485492
"@types/sonic-boom" "*"
486493

487-
"@types/[email protected].4":
488-
version "6.3.4"
489-
resolved "https://registry.yarnpkg.com/@types/pino/-/pino-6.3.4.tgz#f22524c33a7e21f45f5cc7fc2c570ccae0be98fa"
490-
integrity sha512-03MpZ/HP6GlG0oo5dcb8NBpI21zNESswTbaA0VB4uuigXfVy+XLmzh39CY6VCAahPMxCPtuqSEdhwGeA3AOYXg==
494+
"@types/pino@^6.3.6":
495+
version "6.3.6"
496+
resolved "https://registry.yarnpkg.com/@types/pino/-/pino-6.3.6.tgz#3aa928bcbd30dc0c6a0ec2e9302cabd5dee6e832"
497+
integrity sha512-yVgSyMGzNDYe/XNMJyuIkklDeZbFdGAxRztYLoN1QQrrgiLJ1oJPmnS8Ge5xpzI9ODKEddKH97VFQ7cWO6Pumw==
491498
dependencies:
492499
"@types/node" "*"
493500
"@types/pino-std-serializers" "*"
@@ -605,22 +612,24 @@
605612
dependencies:
606613
current-git-branch "^1.1.0"
607614

608-
"@voiceflow/logger@^1.4.2":
609-
version "1.4.2"
610-
resolved "https://registry.yarnpkg.com/@voiceflow/logger/-/logger-1.4.2.tgz#29d16f0a59adc51ec6cf10255b32d0f4ba2bae1a"
611-
integrity sha512-SIuyRkdDn+Zf4EcKaWUMwEch5VwFtGyIzf26xCceJd/mnfiuDz+02ST7fU58x+o4Zv1As7aPFvFJv1gJwJ754g==
615+
"@voiceflow/logger@1.5.2":
616+
version "1.5.2"
617+
resolved "https://registry.yarnpkg.com/@voiceflow/logger/-/logger-1.5.2.tgz#da55a612f5ffaf17ec976f713b202b2f68a78bec"
618+
integrity sha512-zp+yArdfUBrGSFf6Sw4T8q9apB3KWLNjt5tjGFimSna2lNJL0JV40hJAaPmb6YL4FVOzj8N0+ZL15uO7mUZGEA==
612619
dependencies:
620+
"@types/cls-hooked" "^4.3.1"
613621
"@types/express-pino-logger" "^4.0.2"
614-
"@types/pino" "6.3.4"
615-
"@voiceflow/pino-pretty" "4.3.0"
622+
"@voiceflow/pino" "6.11.2"
623+
"@voiceflow/pino-pretty" "4.4.0"
616624
"@zerollup/ts-transform-paths" "^1.7.18"
617-
pino "6.8.0"
625+
cls-hooked "^4.2.2"
626+
nanoid "^3.1.20"
618627
pino-http "5.3.0"
619628

620-
"@voiceflow/pino-pretty@4.3.0":
621-
version "4.3.0"
622-
resolved "https://registry.yarnpkg.com/@voiceflow/pino-pretty/-/pino-pretty-4.3.0.tgz#c07cd43e0eb1bd44d6954e9ce273c65fdbade418"
623-
integrity sha512-xrmjJkXsyEYfGD+NRiKx/GAHV2BfkAXoKfENFaqC7QZ4auxEqcX2Zf5JBCSrjUFq/UcOuictgItk0X2z1/vzWw==
629+
"@voiceflow/pino-pretty@4.4.0":
630+
version "4.4.0"
631+
resolved "https://registry.yarnpkg.com/@voiceflow/pino-pretty/-/pino-pretty-4.4.0.tgz#dd27cf16d14fe0fb3899b459a09c2449f10bc8ef"
632+
integrity sha512-nFpQe7pF1tiNUjimSY/vyfEjUVKuUjJmZ9p68D+R8X4284vVlrjTpa1TMUP7ZLbaUlNvfuBbOwh5dPhH6UQfng==
624633
dependencies:
625634
"@hapi/bourne" "^2.0.0"
626635
args "^5.0.1"
@@ -634,6 +643,19 @@
634643
split2 "^3.1.1"
635644
strip-json-comments "^3.1.1"
636645

646+
"@voiceflow/[email protected]":
647+
version "6.11.2"
648+
resolved "https://registry.yarnpkg.com/@voiceflow/pino/-/pino-6.11.2.tgz#87396fc01e5ab18f4cd64102b78e645c1bca3e84"
649+
integrity sha512-SFXnv+u3U7v1zT8YscDgv7FAFuggIGLIgadAoia7a7pxFxREfXsCk7/Lub8zulgFKH1foByt3dAPPd2TAbx0UQ==
650+
dependencies:
651+
"@types/pino" "^6.3.6"
652+
fast-redact "^3.0.0"
653+
fast-safe-stringify "^2.0.7"
654+
flatstr "^1.0.12"
655+
pino-std-serializers "^3.1.0"
656+
quick-format-unescaped "^4.0.1"
657+
sonic-boom "^1.0.2"
658+
637659
"@voiceflow/prettier-config@^1.0.5":
638660
version "1.0.5"
639661
resolved "https://registry.yarnpkg.com/@voiceflow/prettier-config/-/prettier-config-1.0.5.tgz#307caf65040ae0c0539ecb8531b9e403381f11ab"
@@ -971,6 +993,13 @@ astral-regex@^2.0.0:
971993
resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31"
972994
integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==
973995

996+
async-hook-jl@^1.7.6:
997+
version "1.7.6"
998+
resolved "https://registry.yarnpkg.com/async-hook-jl/-/async-hook-jl-1.7.6.tgz#4fd25c2f864dbaf279c610d73bf97b1b28595e68"
999+
integrity sha512-gFaHkFfSxTjvoxDMYqDuGHlcRyUuamF8s+ZTtJdDzqjws4mCt7v0vuV79/E2Wr2/riMQgtG4/yUtXWs1gZ7JMg==
1000+
dependencies:
1001+
stack-chain "^1.3.7"
1002+
9741003
asynckit@^0.4.0:
9751004
version "0.4.0"
9761005
resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79"
@@ -1324,6 +1353,15 @@ cliui@^7.0.2:
13241353
strip-ansi "^6.0.0"
13251354
wrap-ansi "^7.0.0"
13261355

1356+
cls-hooked@^4.2.2:
1357+
version "4.2.2"
1358+
resolved "https://registry.yarnpkg.com/cls-hooked/-/cls-hooked-4.2.2.tgz#ad2e9a4092680cdaffeb2d3551da0e225eae1908"
1359+
integrity sha512-J4Xj5f5wq/4jAvcdgoGsL3G103BtWpZrMo8NEinRltN+xpTZdI+M38pyQqhuFU/P792xkMFvnKSf+Lm81U1bxw==
1360+
dependencies:
1361+
async-hook-jl "^1.7.6"
1362+
emitter-listener "^1.0.1"
1363+
semver "^5.4.1"
1364+
13271365
collection-visit@^1.0.0:
13281366
version "1.0.0"
13291367
resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0"
@@ -1841,6 +1879,13 @@ electron-to-chromium@^1.3.322:
18411879
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.322.tgz#a6f7e1c79025c2b05838e8e344f6e89eb83213a8"
18421880
integrity sha512-Tc8JQEfGQ1MzfSzI/bTlSr7btJv/FFO7Yh6tanqVmIWOuNCu6/D1MilIEgLtmWqIrsv+o4IjpLAhgMBr/ncNAA==
18431881

1882+
emitter-listener@^1.0.1:
1883+
version "1.1.2"
1884+
resolved "https://registry.yarnpkg.com/emitter-listener/-/emitter-listener-1.1.2.tgz#56b140e8f6992375b3d7cb2cab1cc7432d9632e8"
1885+
integrity sha512-Bt1sBAGFHY9DKY+4/2cV6izcKJUf5T7/gkdmkxzX/qv9CcGH8xSwVRW5mtX03SWJtRTWSOpzCuWN9rBFYZepZQ==
1886+
dependencies:
1887+
shimmer "^1.2.0"
1888+
18441889
emoji-regex@^7.0.1, emoji-regex@^7.0.2:
18451890
version "7.0.3"
18461891
resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156"
@@ -4136,6 +4181,11 @@ [email protected]:
41364181
resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.8.tgz#1630c42b2251ff81e2a283de96a5497ea92e5e0d"
41374182
integrity sha512-nnbWWOkoWyUsTjKrhgD0dcz22mdkSnpYqbEjIm2nhwhuxlSkpywJmBo8h0ZqJdkp73mb90SssHkN4rsRaBAfAA==
41384183

4184+
nanoid@^3.1.20:
4185+
version "3.1.20"
4186+
resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.1.20.tgz#badc263c6b1dcf14b71efaa85f6ab4c1d6cfc788"
4187+
integrity sha512-a1cQNyczgKbLX9jwbS/+d7W8fX/RfgYR7lVWwWOGIPNgK2m0MWvrGF6/m4kk6U3QcFMnZf3RIhL0v2Jgh/0Uxw==
4188+
41394189
nanomatch@^1.2.9:
41404190
version "1.2.13"
41414191
resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119"
@@ -4624,7 +4674,7 @@ [email protected]:
46244674
pino "^6.0.0"
46254675
pino-std-serializers "^2.4.0"
46264676

4627-
pino-std-serializers@^2.4.0, pino-std-serializers@^2.4.2:
4677+
pino-std-serializers@^2.4.0:
46284678
version "2.4.2"
46294679
resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-2.4.2.tgz#cb5e3e58c358b26f88969d7e619ae54bdfcc1ae1"
46304680
integrity sha512-WaL504dO8eGs+vrK+j4BuQQq6GLKeCCcHaMB2ItygzVURcL1CycwNEUHTD/lHFHs/NL5qAz2UKrjYWXKSf4aMQ==
@@ -4634,18 +4684,6 @@ pino-std-serializers@^3.1.0:
46344684
resolved "https://registry.yarnpkg.com/pino-std-serializers/-/pino-std-serializers-3.2.0.tgz#b56487c402d882eb96cd67c257868016b61ad671"
46354685
integrity sha512-EqX4pwDPrt3MuOAAUBMU0Tk5kR/YcCM5fNPEzgCO2zJ5HfX0vbiH9HbJglnyeQsN96Kznae6MWD47pZB5avTrg==
46364686

4637-
4638-
version "6.8.0"
4639-
resolved "https://registry.yarnpkg.com/pino/-/pino-6.8.0.tgz#d242f9936f2e65217fde75c0af5d5d8b4d3d3fde"
4640-
integrity sha512-nxq+6Jr7m0cMjYFBoTRw3bco14omZ/SQCheAHz9GVwdkbUrzKhgT+gSI/ql2Mnsca0QQKgpB/ACWhjxE4JsX3Q==
4641-
dependencies:
4642-
fast-redact "^3.0.0"
4643-
fast-safe-stringify "^2.0.7"
4644-
flatstr "^1.0.12"
4645-
pino-std-serializers "^2.4.2"
4646-
quick-format-unescaped "^4.0.1"
4647-
sonic-boom "^1.0.2"
4648-
46494687
pino@^6.0.0:
46504688
version "6.11.0"
46514689
resolved "https://registry.yarnpkg.com/pino/-/pino-6.11.0.tgz#c474712d462f1de524cf885257d21271d1ab7c16"
@@ -5306,6 +5344,11 @@ shebang-regex@^3.0.0:
53065344
resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172"
53075345
integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==
53085346

5347+
shimmer@^1.2.0:
5348+
version "1.2.1"
5349+
resolved "https://registry.yarnpkg.com/shimmer/-/shimmer-1.2.1.tgz#610859f7de327b587efebf501fb43117f9aff337"
5350+
integrity sha512-sQTKC1Re/rM6XyFM6fIAGHRPVGvyXfgzIDvzoq608vM+jeyVD0Tu1E6Np0Kc2zAIFWIj963V2800iF/9LPieQw==
5351+
53095352
signal-exit@^3.0.0, signal-exit@^3.0.2:
53105353
version "3.0.2"
53115354
resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.2.tgz#b5fdc08f1287ea1178628e415e25132b73646c6d"
@@ -5491,6 +5534,11 @@ sprintf-js@~1.0.2:
54915534
resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c"
54925535
integrity sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=
54935536

5537+
stack-chain@^1.3.7:
5538+
version "1.3.7"
5539+
resolved "https://registry.yarnpkg.com/stack-chain/-/stack-chain-1.3.7.tgz#d192c9ff4ea6a22c94c4dd459171e3f00cea1285"
5540+
integrity sha1-0ZLJ/06moiyUxN1FkXHj8AzqEoU=
5541+
54945542
static-extend@^0.1.1:
54955543
version "0.1.2"
54965544
resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6"

0 commit comments

Comments
 (0)