Archived
0
0
Fork 0

feat: downgraded pino due to weird errors

This commit is contained in:
Daryl Ronningen 2021-11-04 13:19:51 -07:00
parent d8ac07f43b
commit b3d8338b9e
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B
3 changed files with 69 additions and 123 deletions

View file

@ -45,8 +45,8 @@
"discord.js": "^13.3.1", "discord.js": "^13.3.1",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"node-fetch": "^3.0.0", "node-fetch": "^3.0.0",
"pino": "^7.1.0", "pino": "^ v6.13.3",
"pino-pretty": "^7.2.0" "pino-pretty": "^ v6.0.0"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^14.1.0", "@commitlint/cli": "^14.1.0",

View file

@ -5,6 +5,7 @@ import { ApplicationCommand, ApplicationCommandOptionData, ChatInputApplicationC
import _ from 'lodash'; import _ from 'lodash';
import path from 'path'; import path from 'path';
import pino from 'pino'; import pino from 'pino';
import PinoPretty from 'pino-pretty';
import { walkDir } from './utils/utils'; import { walkDir } from './utils/utils';
import type { Command } from './structures/command'; import type { Command } from './structures/command';
@ -17,7 +18,7 @@ export class NeonClient extends Client {
public commands: Collection<string, Command> = new Collection(); public commands: Collection<string, Command> = new Collection();
public ownerID: string; public ownerID: string;
public static logger: pino.Logger = pino({ level: 'trace', transport: { target: 'pino-pretty', options: { colorize: true, translateTime: true } } }); public static logger = pino({ level: 'trace', prettifier: PinoPretty({ colorize: true, translateTime: true, levelFirst: true }) });
public constructor(ownerID: string, options: ClientOptions) { public constructor(ownerID: string, options: ClientOptions) {
super(options); super(options);

185
yarn.lock
View file

@ -596,6 +596,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@hapi/bourne@npm:^2.0.0":
version: 2.0.0
resolution: "@hapi/bourne@npm:2.0.0"
checksum: 2ea0922101d3fecec43428194c72c5dbe0be908dd7ad07347879dc720820ac410ead79a4c349a2e1726e8af062464160c6d32b6566bbc4c60865923f9d7dd006
languageName: node
linkType: hard
"@humanwhocodes/config-array@npm:^0.6.0": "@humanwhocodes/config-array@npm:^0.6.0":
version: 0.6.0 version: 0.6.0
resolution: "@humanwhocodes/config-array@npm:0.6.0" resolution: "@humanwhocodes/config-array@npm:0.6.0"
@ -655,8 +662,8 @@ __metadata:
lint-staged: ^11.2.6 lint-staged: ^11.2.6
lodash: ^4.17.21 lodash: ^4.17.21
node-fetch: ^3.0.0 node-fetch: ^3.0.0
pino: ^7.1.0 pino: ^ v6.13.3
pino-pretty: ^7.2.0 pino-pretty: ^ v6.0.0
pinst: ^2.1.6 pinst: ^2.1.6
rimraf: ^3.0.2 rimraf: ^3.0.2
semantic-release: ^18.0.0 semantic-release: ^18.0.0
@ -1403,19 +1410,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"@types/pino@npm:*": "@types/pino@npm:*, @types/pino@npm:^6.3.12":
version: 6.3.11
resolution: "@types/pino@npm:6.3.11"
dependencies:
"@types/node": "*"
"@types/pino-pretty": "*"
"@types/pino-std-serializers": "*"
sonic-boom: ^2.1.0
checksum: 170d4a3ae1cffb7361d5a18934c271a1ebc58832d2bf479c8eeeec34954efd16da96b76e68c8d438df227fc6adb3cbc7bbd5c5318f291cb31ae9e9daa3f6873b
languageName: node
linkType: hard
"@types/pino@npm:^6.3.12":
version: 6.3.12 version: 6.3.12
resolution: "@types/pino@npm:6.3.12" resolution: "@types/pino@npm:6.3.12"
dependencies: dependencies:
@ -2384,20 +2379,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"colorette@npm:^1.4.0": "colorette@npm:^1.3.0, colorette@npm:^1.4.0":
version: 1.4.0 version: 1.4.0
resolution: "colorette@npm:1.4.0" resolution: "colorette@npm:1.4.0"
checksum: 01c3c16058b182a4ab4c126a65a75faa4d38a20fa7c845090b25453acec6c371bb2c5dceb0a2338511f17902b9d1a9af0cadd8509c9403894b79311032c256c3 checksum: 01c3c16058b182a4ab4c126a65a75faa4d38a20fa7c845090b25453acec6c371bb2c5dceb0a2338511f17902b9d1a9af0cadd8509c9403894b79311032c256c3
languageName: node languageName: node
linkType: hard linkType: hard
"colorette@npm:^2.0.7":
version: 2.0.16
resolution: "colorette@npm:2.0.16"
checksum: cd55596a3a2d1071c1a28eee7fd8a5387593ff1bd10a3e8d0a6221499311fe34a9f2b9272d77c391e0e003dcdc8934fb2f8d106e7ef1f7516f8060c901d41a27
languageName: node
linkType: hard
"colors@npm:^1.1.2": "colors@npm:^1.1.2":
version: 1.4.0 version: 1.4.0
resolution: "colors@npm:1.4.0" resolution: "colors@npm:1.4.0"
@ -2670,7 +2658,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"dateformat@npm:^4.6.3": "dateformat@npm:^4.5.1":
version: 4.6.3 version: 4.6.3
resolution: "dateformat@npm:4.6.3" resolution: "dateformat@npm:4.6.3"
checksum: c3aa0617c0a5b30595122bc8d1bee6276a9221e4d392087b41cbbdf175d9662ae0e50d0d6dcdf45caeac5153c4b5b0844265f8cd2b2245451e3da19e39e3b65d checksum: c3aa0617c0a5b30595122bc8d1bee6276a9221e4d392087b41cbbdf175d9662ae0e50d0d6dcdf45caeac5153c4b5b0844265f8cd2b2245451e3da19e39e3b65d
@ -2924,18 +2912,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"duplexify@npm:^4.1.2":
version: 4.1.2
resolution: "duplexify@npm:4.1.2"
dependencies:
end-of-stream: ^1.4.1
inherits: ^2.0.3
readable-stream: ^3.1.1
stream-shift: ^1.0.0
checksum: 964376c61c0e92f6ed0694b3ba97c84f199413dc40ab8dfdaef80b7a7f4982fcabf796214e28ed614a5bc1ec45488a29b81e7d46fa3f5ddf65bcb118c20145ad
languageName: node
linkType: hard
"ecc-jsbn@npm:~0.1.1": "ecc-jsbn@npm:~0.1.1":
version: 0.1.2 version: 0.1.2
resolution: "ecc-jsbn@npm:0.1.2" resolution: "ecc-jsbn@npm:0.1.2"
@ -2969,7 +2945,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"end-of-stream@npm:^1.1.0, end-of-stream@npm:^1.4.1": "end-of-stream@npm:^1.1.0":
version: 1.4.4 version: 1.4.4
resolution: "end-of-stream@npm:1.4.4" resolution: "end-of-stream@npm:1.4.4"
dependencies: dependencies:
@ -3380,7 +3356,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"fast-safe-stringify@npm:^2.0.7": "fast-safe-stringify@npm:^2.0.7, fast-safe-stringify@npm:^2.0.8":
version: 2.1.1 version: 2.1.1
resolution: "fast-safe-stringify@npm:2.1.1" resolution: "fast-safe-stringify@npm:2.1.1"
checksum: a851cbddc451745662f8f00ddb622d6766f9bd97642dabfd9a405fb0d646d69fc0b9a1243cbf67f5f18a39f40f6fa821737651ff1bceeba06c9992ca2dc5bd3d checksum: a851cbddc451745662f8f00ddb622d6766f9bd97642dabfd9a405fb0d646d69fc0b9a1243cbf67f5f18a39f40f6fa821737651ff1bceeba06c9992ca2dc5bd3d
@ -3532,6 +3508,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"flatstr@npm:^1.0.12":
version: 1.0.12
resolution: "flatstr@npm:1.0.12"
checksum: e1bb562c94b119e958bf37e55738b172b5f8aaae6532b9660ecd877779f8559dbbc89613ba6b29ccc13447e14c59277d41450f785cf75c30df9fce62f459e9a8
languageName: node
linkType: hard
"flatted@npm:^3.1.0": "flatted@npm:^3.1.0":
version: 3.2.2 version: 3.2.2
resolution: "flatted@npm:3.2.2" resolution: "flatted@npm:3.2.2"
@ -4543,6 +4526,13 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"jmespath@npm:^0.15.0":
version: 0.15.0
resolution: "jmespath@npm:0.15.0"
checksum: 353bb9e69cc4c1560be0a4df43cb4020abc246e1c60cb5b55dcc76d8c858383f1633faf22ccaf6a5e09568a2077d0f4f1e989e6fcfd496b5cef87964cc8cb9e7
languageName: node
linkType: hard
"joycon@npm:^3.0.0": "joycon@npm:^3.0.0":
version: 3.0.1 version: 3.0.1
resolution: "joycon@npm:3.0.1" resolution: "joycon@npm:3.0.1"
@ -5863,13 +5853,6 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"on-exit-leak-free@npm:^0.2.0":
version: 0.2.0
resolution: "on-exit-leak-free@npm:0.2.0"
checksum: d22b0f0538069110626b578db6e68b6ee0e85b1ee9cc5ef9b4de1bba431431d6a8da91a61e09d2ad46f22a96f968e5237833cb9d0b69bc4d294f7ec82f609b05
languageName: node
linkType: hard
"once@npm:^1.3.0, once@npm:^1.3.1, once@npm:^1.4.0": "once@npm:^1.3.0, once@npm:^1.3.1, once@npm:^1.4.0":
version: 1.4.0 version: 1.4.0
resolution: "once@npm:1.4.0" resolution: "once@npm:1.4.0"
@ -6291,62 +6274,49 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"pino-abstract-transport@npm:^0.5.0, pino-abstract-transport@npm:v0.5.0": "pino-pretty@npm:^ v6.0.0":
version: 0.5.0 version: 6.0.0
resolution: "pino-abstract-transport@npm:0.5.0" resolution: "pino-pretty@npm:6.0.0"
dependencies:
duplexify: ^4.1.2
split2: ^4.0.0
checksum: c503f867de3189f8217ab9cf794e8a631dddd0029a829f0f985f5511308152ebd53e363764fbc5570b3d1c715b341e3923456ce16ad84cd41be2b9a074ada234
languageName: node
linkType: hard
"pino-pretty@npm:^7.2.0":
version: 7.2.0
resolution: "pino-pretty@npm:7.2.0"
dependencies: dependencies:
"@hapi/bourne": ^2.0.0
args: ^5.0.1 args: ^5.0.1
colorette: ^2.0.7 colorette: ^1.3.0
dateformat: ^4.6.3 dateformat: ^4.5.1
fast-safe-stringify: ^2.0.7 fast-safe-stringify: ^2.0.7
jmespath: ^0.15.0
joycon: ^3.0.0 joycon: ^3.0.0
pino-abstract-transport: ^0.5.0
pump: ^3.0.0 pump: ^3.0.0
readable-stream: ^3.6.0 readable-stream: ^3.6.0
rfdc: ^1.3.0 rfdc: ^1.3.0
secure-json-parse: ^2.4.0 split2: ^3.1.1
sonic-boom: ^2.2.0
strip-json-comments: ^3.1.1 strip-json-comments: ^3.1.1
bin: bin:
pino-pretty: bin.js pino-pretty: bin.js
checksum: dafe8a33681316c97eda6a1240ea8b8a0efad6e62183c793c6bbe594aae836bd5894f2fb5657b6a8e26576ccb364213186cf3dc060e89f68ddcee87c98e5a803 checksum: dd2c8e09a62a2fe12420f55d8929bd425d24c9edc9ccaf8489b174398d45aad8376337a4f904c06d1381c8e233d3b97aa10f7c29e1e85d3c001d9030ffa2e3bb
languageName: node languageName: node
linkType: hard linkType: hard
"pino-std-serializers@npm:^4.0.0": "pino-std-serializers@npm:^3.1.0":
version: 4.0.0 version: 3.2.0
resolution: "pino-std-serializers@npm:4.0.0" resolution: "pino-std-serializers@npm:3.2.0"
checksum: 89d487729b58c9d3273a0ee851ead068d6d2e2ccc1af8e1c1d28f1b3442423679bec7ec04d9a2aba36f94f335e82be9f4de19dc4fbc161e71c136aaa15b85ad3 checksum: 77e29675b116e42ae9fe6d4ef52ef3a082ffc54922b122d85935f93ddcc20277f0b0c873c5c6c5274a67b0409c672aaae3de6bcea10a2d84699718dda55ba95b
languageName: node languageName: node
linkType: hard linkType: hard
"pino@npm:^7.1.0": "pino@npm:^ v6.13.3":
version: 7.1.0 version: 6.13.3
resolution: "pino@npm:7.1.0" resolution: "pino@npm:6.13.3"
dependencies: dependencies:
fast-redact: ^3.0.0 fast-redact: ^3.0.0
fast-safe-stringify: ^2.0.8
fastify-warning: ^0.2.0 fastify-warning: ^0.2.0
get-caller-file: ^2.0.5 flatstr: ^1.0.12
on-exit-leak-free: ^0.2.0 pino-std-serializers: ^3.1.0
pino-abstract-transport: v0.5.0
pino-std-serializers: ^4.0.0
quick-format-unescaped: ^4.0.3 quick-format-unescaped: ^4.0.3
safe-stable-stringify: ^2.1.0 sonic-boom: ^1.0.2
sonic-boom: ^2.2.1
thread-stream: ^0.12.0
bin: bin:
pino: bin.js pino: bin.js
checksum: 9e2b7cf2e5ea7eac0933ac7a76e8519b30c7634b624d3d954a3dcf307c92a9258492bd443686d3e427c3a80515b6512eed12f2c0d79956a794ac2fc84bbae9a7 checksum: a580decd47a1c8b32a846ba1cb478087b523636d697bd4c57833d10b3f2b35c7d06739715ad9a291b41caf002b8d1bbf98674bfb3e99989fd41b7d934cca861c
languageName: node languageName: node
linkType: hard linkType: hard
@ -6614,7 +6584,7 @@ __metadata:
languageName: node languageName: node
linkType: hard linkType: hard
"readable-stream@npm:3, readable-stream@npm:^3.0.0, readable-stream@npm:^3.1.1, readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0": "readable-stream@npm:3, readable-stream@npm:^3.0.0, readable-stream@npm:^3.4.0, readable-stream@npm:^3.6.0":
version: 3.6.0 version: 3.6.0
resolution: "readable-stream@npm:3.6.0" resolution: "readable-stream@npm:3.6.0"
dependencies: dependencies:
@ -6909,13 +6879,6 @@ resolve@^1.10.0:
languageName: node languageName: node
linkType: hard linkType: hard
"safe-stable-stringify@npm:^2.1.0":
version: 2.2.0
resolution: "safe-stable-stringify@npm:2.2.0"
checksum: 09facfbc43259f02422ff00ecbb3490d19a7b4f9545852c8a0045bd3d0120bc07f6e5f803f124312c237db688b7051fe85670c817ebba66f8530c5049201e0b2
languageName: node
linkType: hard
"safer-buffer@npm:>= 2.1.2 < 3, safer-buffer@npm:>= 2.1.2 < 3.0.0, safer-buffer@npm:^2.0.2, safer-buffer@npm:^2.1.0, safer-buffer@npm:~2.1.0": "safer-buffer@npm:>= 2.1.2 < 3, safer-buffer@npm:>= 2.1.2 < 3.0.0, safer-buffer@npm:^2.0.2, safer-buffer@npm:^2.1.0, safer-buffer@npm:~2.1.0":
version: 2.1.2 version: 2.1.2
resolution: "safer-buffer@npm:2.1.2" resolution: "safer-buffer@npm:2.1.2"
@ -6923,13 +6886,6 @@ resolve@^1.10.0:
languageName: node languageName: node
linkType: hard linkType: hard
"secure-json-parse@npm:^2.4.0":
version: 2.4.0
resolution: "secure-json-parse@npm:2.4.0"
checksum: efaafcaa08a4646ca829b29168474f57fb289a0ca7a1d77b66b55a0292785bc6eb9143b21cfc50b37dd12a823c25b12aa1771f18314ed5a616a1f8f12a318533
languageName: node
linkType: hard
"semantic-release@npm:18.0.0, semantic-release@npm:^18.0.0": "semantic-release@npm:18.0.0, semantic-release@npm:^18.0.0":
version: 18.0.0 version: 18.0.0
resolution: "semantic-release@npm:18.0.0" resolution: "semantic-release@npm:18.0.0"
@ -7129,12 +7085,22 @@ resolve@^1.10.0:
languageName: node languageName: node
linkType: hard linkType: hard
"sonic-boom@npm:^2.1.0, sonic-boom@npm:^2.2.0, sonic-boom@npm:^2.2.1": "sonic-boom@npm:^1.0.2":
version: 2.3.0 version: 1.4.1
resolution: "sonic-boom@npm:2.3.0" resolution: "sonic-boom@npm:1.4.1"
dependencies: dependencies:
atomic-sleep: ^1.0.0 atomic-sleep: ^1.0.0
checksum: 208329d1533e99c436df0c41762554a9934b9af8b43cdb9792c2570292c9c78b5bc2c78d0ac0508d4a93568367d80ea3a2bb9cda31e882abcd111405bea4705f flatstr: ^1.0.12
checksum: 189fa8fe5c2dc05d3513fc1a4926a2f16f132fa6fa0b511745a436010cdcd9c1d3b3cb6a9d7c05bd32a965dc77673a5ac0eb0992e920bdedd16330d95323124f
languageName: node
linkType: hard
"sonic-boom@npm:^2.1.0":
version: 2.3.1
resolution: "sonic-boom@npm:2.3.1"
dependencies:
atomic-sleep: ^1.0.0
checksum: 4f5022de97483bb6f889415e342f9a451dbdebbe732df454f7d6e417cc80e813c19e2d646ad5ae20a92510a34c311fb9fbc440864bb234b78b3a2100467d851b
languageName: node languageName: node
linkType: hard linkType: hard
@ -7203,7 +7169,7 @@ resolve@^1.10.0:
languageName: node languageName: node
linkType: hard linkType: hard
"split2@npm:^3.0.0": "split2@npm:^3.0.0, split2@npm:^3.1.1":
version: 3.2.2 version: 3.2.2
resolution: "split2@npm:3.2.2" resolution: "split2@npm:3.2.2"
dependencies: dependencies:
@ -7212,13 +7178,6 @@ resolve@^1.10.0:
languageName: node languageName: node
linkType: hard linkType: hard
"split2@npm:^4.0.0":
version: 4.1.0
resolution: "split2@npm:4.1.0"
checksum: ec581597cb74c13cdfb5e2047543dd40cb1e8e9803c7b1e0c29ede05f2b4f049b2d6e7f2788a225d544549375719658b8f38e9366364dec35dc7a12edfda5ee5
languageName: node
linkType: hard
"split2@npm:~1.0.0": "split2@npm:~1.0.0":
version: 1.0.0 version: 1.0.0
resolution: "split2@npm:1.0.0" resolution: "split2@npm:1.0.0"
@ -7284,13 +7243,6 @@ resolve@^1.10.0:
languageName: node languageName: node
linkType: hard linkType: hard
"stream-shift@npm:^1.0.0":
version: 1.0.1
resolution: "stream-shift@npm:1.0.1"
checksum: 59b82b44b29ec3699b5519a49b3cedcc6db58c72fb40c04e005525dfdcab1c75c4e0c180b923c380f204bed78211b9bad8faecc7b93dece4d004c3f6ec75737b
languageName: node
linkType: hard
"string-argv@npm:0.3.1": "string-argv@npm:0.3.1":
version: 0.3.1 version: 0.3.1
resolution: "string-argv@npm:0.3.1" resolution: "string-argv@npm:0.3.1"
@ -7538,13 +7490,6 @@ resolve@^1.10.0:
languageName: node languageName: node
linkType: hard linkType: hard
"thread-stream@npm:^0.12.0":
version: 0.12.1
resolution: "thread-stream@npm:0.12.1"
checksum: 4c28ce1aef2b8e34adb6345ced8538f95e2d1bcc3dd82394a49ce66dd150917e607dd19e35a7a9bf383fd4ac6fd90c6a180f861043dace7dda26be860d9ec9ce
languageName: node
linkType: hard
"through2@npm:^4.0.0": "through2@npm:^4.0.0":
version: 4.0.2 version: 4.0.2
resolution: "through2@npm:4.0.2" resolution: "through2@npm:4.0.2"