Skip to content

Commit 931ae33

Browse files
committed
Improved performance of logging to stdout
refs TryGhost/framework@66cfc15 refs TryGhost/framework@be5ddf2 ref https://linear.app/ghost/issue/ENG-2005/improve-stdout-logging-performance - most of the technical context is in the 2 commits but this commit just bumps the packages so we can take advantage of the lovely improvements
1 parent da18254 commit 931ae33

File tree

16 files changed

+109
-32
lines changed

16 files changed

+109
-32
lines changed

ghost/activitypub/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
],
2424
"devDependencies": {
2525
"@tryghost/identity-token-service": "0.0.0",
26-
"@tryghost/logging": "2.4.19",
26+
"@tryghost/logging": "2.4.20",
2727
"c8": "10.1.2",
2828
"knex": "3.1.0",
2929
"mocha": "10.8.2",

ghost/core/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@
114114
"@tryghost/link-redirects": "0.0.0",
115115
"@tryghost/link-replacer": "0.0.0",
116116
"@tryghost/link-tracking": "0.0.0",
117-
"@tryghost/logging": "2.4.18",
117+
"@tryghost/logging": "2.4.20",
118118
"@tryghost/magic-link": "0.0.0",
119119
"@tryghost/mail-events": "0.0.0",
120120
"@tryghost/mailgun-client": "0.0.0",
@@ -259,7 +259,7 @@
259259
},
260260
"resolutions": {
261261
"@tryghost/errors": "1.3.5",
262-
"@tryghost/logging": "2.4.18",
262+
"@tryghost/logging": "2.4.20",
263263
"jackspeak": "2.1.1",
264264
"moment": "2.24.0",
265265
"moment-timezone": "0.5.45"

ghost/domain-events/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"lib"
2020
],
2121
"devDependencies": {
22-
"@tryghost/logging": "2.4.18",
22+
"@tryghost/logging": "2.4.20",
2323
"c8": "8.0.1",
2424
"mocha": "10.2.0",
2525
"should": "13.2.3"

ghost/email-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"@tryghost/errors": "1.3.5",
3131
"@tryghost/html-to-plaintext": "0.0.0",
3232
"@tryghost/kg-default-cards": "10.0.10",
33-
"@tryghost/logging": "2.4.18",
33+
"@tryghost/logging": "2.4.20",
3434
"@tryghost/tpl": "0.1.32",
3535
"@tryghost/validator": "0.2.14",
3636
"bson-objectid": "2.0.4",

ghost/job-manager/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"dependencies": {
3131
"@breejs/later": "4.2.0",
3232
"@tryghost/errors": "1.3.5",
33-
"@tryghost/logging": "2.4.18",
33+
"@tryghost/logging": "2.4.20",
3434
"bree": "6.5.0",
3535
"cron-validate": "1.4.5",
3636
"fastq": "1.19.0",

ghost/mailgun-client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
},
2626
"dependencies": {
2727
"@tryghost/debug": "0.1.32",
28-
"@tryghost/logging": "2.4.18",
28+
"@tryghost/logging": "2.4.20",
2929
"@tryghost/metrics": "1.0.34",
3030
"form-data": "4.0.0",
3131
"lodash": "4.17.21",

ghost/members-api/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"@tryghost/domain-events": "0.0.0",
3434
"@tryghost/errors": "1.3.5",
35-
"@tryghost/logging": "2.4.18",
35+
"@tryghost/logging": "2.4.20",
3636
"@tryghost/magic-link": "0.0.0",
3737
"@tryghost/member-events": "0.0.0",
3838
"@tryghost/members-payments": "0.0.0",

ghost/members-events-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"dependencies": {
2828
"@tryghost/domain-events": "0.0.0",
2929
"@tryghost/errors": "1.3.5",
30-
"@tryghost/logging": "2.4.18",
30+
"@tryghost/logging": "2.4.20",
3131
"@tryghost/member-events": "0.0.0",
3232
"moment-timezone": "0.5.34"
3333
}

ghost/members-importer/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"dependencies": {
2828
"@tryghost/errors": "1.3.5",
29-
"@tryghost/logging": "2.4.18",
29+
"@tryghost/logging": "2.4.20",
3030
"@tryghost/members-csv": "0.0.0",
3131
"@tryghost/metrics": "1.0.34",
3232
"@tryghost/tpl": "0.1.32",

ghost/oembed-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"dependencies": {
2525
"@extractus/oembed-extractor": "3.2.1",
2626
"@tryghost/errors": "1.3.5",
27-
"@tryghost/logging": "2.4.18",
27+
"@tryghost/logging": "2.4.20",
2828
"@tryghost/tpl": "0.1.32",
2929
"charset": "1.0.1",
3030
"cheerio": "0.22.0",

ghost/prometheus-metrics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"typescript": "5.6.2"
3535
},
3636
"dependencies": {
37-
"@tryghost/logging": "2.4.19",
37+
"@tryghost/logging": "2.4.20",
3838
"express": "4.21.2",
3939
"prom-client": "15.1.3",
4040
"stoppable": "1.1.0"

ghost/stripe/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"@tryghost/debug": "0.1.32",
2929
"@tryghost/domain-events": "0.0.0",
3030
"@tryghost/errors": "1.3.5",
31-
"@tryghost/logging": "2.4.18",
31+
"@tryghost/logging": "2.4.20",
3232
"@tryghost/member-events": "0.0.0",
3333
"leaky-bucket": "2.2.0",
3434
"lodash": "4.17.21",

ghost/update-check-service/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"dependencies": {
2828
"@tryghost/debug": "0.1.32",
2929
"@tryghost/errors": "1.3.5",
30-
"@tryghost/logging": "2.4.18",
30+
"@tryghost/logging": "2.4.20",
3131
"@tryghost/tpl": "0.1.32",
3232
"lodash": "4.17.21",
3333
"moment": "2.24.0"

ghost/webmentions/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
},
2727
"dependencies": {
2828
"@tryghost/errors": "1.3.5",
29-
"@tryghost/logging": "2.4.18",
29+
"@tryghost/logging": "2.4.20",
3030
"cheerio": "0.22.0"
3131
}
3232
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@
5858
},
5959
"resolutions": {
6060
"@tryghost/errors": "1.3.5",
61-
"@tryghost/logging": "2.4.18",
61+
"@tryghost/logging": "2.4.20",
6262
"jackspeak": "2.1.1",
6363
"moment": "2.24.0",
6464
"moment-timezone": "0.5.45"

yarn.lock

Lines changed: 93 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7642,6 +7642,14 @@
76427642
"@tryghost/root-utils" "^0.3.31"
76437643
debug "^4.3.1"
76447644

7645+
"@tryghost/debug@^0.1.34":
7646+
version "0.1.34"
7647+
resolved "https://registry.yarnpkg.com/@tryghost/debug/-/debug-0.1.34.tgz#cac7100b092b358e54637ed620dc9cd9ac76355c"
7648+
integrity sha512-TuTI/BCktv3NY+QhJWrcDBRN6qxgy7zgKHj18MzCZEqPVRXdzYdsd8ldO/Q7jSNgHjf0UHuwDTc5VFuNzCUABA==
7649+
dependencies:
7650+
"@tryghost/root-utils" "^0.3.32"
7651+
debug "^4.3.1"
7652+
76457653
"@tryghost/elasticsearch@^3.0.21":
76467654
version "3.0.21"
76477655
resolved "https://registry.npmjs.org/@tryghost/elasticsearch/-/elasticsearch-3.0.21.tgz#a4acbfccf1577d1f7c9750018cbd30afefa87b3a"
@@ -7651,6 +7659,15 @@
76517659
"@tryghost/debug" "^0.1.32"
76527660
split2 "4.2.0"
76537661

7662+
"@tryghost/elasticsearch@^3.0.23":
7663+
version "3.0.23"
7664+
resolved "https://registry.yarnpkg.com/@tryghost/elasticsearch/-/elasticsearch-3.0.23.tgz#45563fdaa8969cd153bacae7b8538b45681d467c"
7665+
integrity sha512-6j5plnUmdPtOqX8FpwEf5jDWx2MeojvOXhCLViD5DxiOFtG0PSQENNBFpKywHuiabNFTc7rcHkX4PUhOYimBWg==
7666+
dependencies:
7667+
"@elastic/elasticsearch" "8.13.1"
7668+
"@tryghost/debug" "^0.1.34"
7669+
split2 "4.2.0"
7670+
76547671
"@tryghost/[email protected]":
76557672
version "0.3.8"
76567673
resolved "https://registry.yarnpkg.com/@tryghost/email-mock-receiver/-/email-mock-receiver-0.3.8.tgz#17480deaa75e8c0e66560969c0f13e39b8ce6196"
@@ -7672,7 +7689,7 @@
76727689
focus-trap "^6.7.2"
76737690
postcss-preset-env "^7.3.1"
76747691

7675-
"@tryghost/[email protected]", "@tryghost/[email protected]", "@tryghost/errors@^1.2.26", "@tryghost/errors@^1.2.3", "@tryghost/errors@^1.3.5", "@tryghost/errors@^1.3.6":
7692+
"@tryghost/[email protected]", "@tryghost/[email protected]", "@tryghost/errors@^1.2.26", "@tryghost/errors@^1.2.3", "@tryghost/errors@^1.3.5", "@tryghost/errors@^1.3.6", "@tryghost/errors@^1.3.7":
76767693
version "1.3.5"
76777694
resolved "https://registry.yarnpkg.com/@tryghost/errors/-/errors-1.3.5.tgz#f4ef8e5c41a8a37456f2285271124180685827ae"
76787695
integrity sha512-iOkiHGnYFqSdFM9AVlgiL56Qcx6V9iQ3kbDKxyOAxrhMKq1OnOmOm7tr1CgGK1YDte9XYEZmR9hUZEg+ujn/jQ==
@@ -7710,13 +7727,13 @@
77107727
resolved "https://registry.yarnpkg.com/@tryghost/http-cache-utils/-/http-cache-utils-0.1.17.tgz#9dd01464cfa52947fa0b63ea57ef084106ff42ba"
77117728
integrity sha512-sO/C2nCX3C4sPz1ysN8/9em8dbhnSUGP0d84CjZsSrs/DYzZmw1nWJGKzDF80mOpYIs34GGL+JhybRRTlOrviA==
77127729

7713-
"@tryghost/http-stream@^0.1.33":
7714-
version "0.1.33"
7715-
resolved "https://registry.yarnpkg.com/@tryghost/http-stream/-/http-stream-0.1.33.tgz#8c74d63c0ad764e0a889709751ed6379d387daab"
7716-
integrity sha512-6DC/YmpEF/u8aez8e3+Xc4MkihSILP5EfErQsrUCT3QcdaEIxR+3u1JlsH9Qe7U5ld1wN7tzDS45mFDQy96G6Q==
7730+
"@tryghost/http-stream@^0.1.35":
7731+
version "0.1.35"
7732+
resolved "https://registry.yarnpkg.com/@tryghost/http-stream/-/http-stream-0.1.35.tgz#9b2e645ce6875303c4686dc131be4743fd072cf6"
7733+
integrity sha512-JjxQ+PljIskf3tvf3f+We+ZJvaCo2JEkZmKhYN2aq4iPkzu8ikmOGdjlIXOG9QoT25+bG1vcLdp4DM9fcRlLxA==
77177734
dependencies:
7718-
"@tryghost/errors" "^1.3.5"
7719-
"@tryghost/request" "^1.0.8"
7735+
"@tryghost/errors" "^1.3.7"
7736+
"@tryghost/request" "^1.0.10"
77207737

77217738
"@tryghost/[email protected]":
77227739
version "1.3.0"
@@ -7895,16 +7912,16 @@
78957912
lodash "^4.17.21"
78967913
luxon "^1.26.0"
78977914

7898-
"@tryghost/[email protected]", "@tryghost/[email protected]", "@tryghost/[email protected].19", "@tryghost/logging@^2.4.7":
7899-
version "2.4.18"
7900-
resolved "https://registry.yarnpkg.com/@tryghost/logging/-/logging-2.4.18.tgz#5d7ddb2d0a66dc6834a6048ebbf48418420445d5"
7901-
integrity sha512-mMJkdCFDXa0ohS0FlDTvOrJQd7VamBIqjljGYvNECdVli7BMjdUYgZyWr8bEJ/d7scsq8OE2bVVBJWLxvPxLAg==
7915+
"@tryghost/[email protected]", "@tryghost/[email protected]", "@tryghost/[email protected].20", "@tryghost/logging@^2.4.7":
7916+
version "2.4.20"
7917+
resolved "https://registry.yarnpkg.com/@tryghost/logging/-/logging-2.4.20.tgz#251cff0911014829816d865667104fcd4ac25b7f"
7918+
integrity sha512-7fpg8xuJHrgAgGhtJjY9nH5vAj8RY2SvcPLkOvD/7leou47ZdSu15l+bUBNFAsx9mAI7AdozDRCAv3WuTkV7cw==
79027919
dependencies:
79037920
"@tryghost/bunyan-rotating-filestream" "^0.0.7"
7904-
"@tryghost/elasticsearch" "^3.0.21"
7905-
"@tryghost/http-stream" "^0.1.33"
7906-
"@tryghost/pretty-stream" "^0.1.26"
7907-
"@tryghost/root-utils" "^0.3.30"
7921+
"@tryghost/elasticsearch" "^3.0.23"
7922+
"@tryghost/http-stream" "^0.1.35"
7923+
"@tryghost/pretty-stream" "^0.1.28"
7924+
"@tryghost/root-utils" "^0.3.32"
79087925
bunyan "^1.8.15"
79097926
bunyan-loggly "^1.4.2"
79107927
fs-extra "^11.0.0"
@@ -8001,6 +8018,15 @@
80018018
moment "^2.29.1"
80028019
prettyjson "^1.2.5"
80038020

8021+
"@tryghost/pretty-stream@^0.1.28":
8022+
version "0.1.28"
8023+
resolved "https://registry.yarnpkg.com/@tryghost/pretty-stream/-/pretty-stream-0.1.28.tgz#2cff88b3a6cb6f1c1b7dd08c27fb9f6351da487e"
8024+
integrity sha512-iA3Jxw4ltiHKPBZMnvYN3TP26O2RdQBH051BNY+qrSJjx8DhLVverjXlwCC3fxfOTTiPDtx1aMMLlW4RkACtlQ==
8025+
dependencies:
8026+
date-format "^4.0.14"
8027+
lodash "^4.17.21"
8028+
prettyjson "^1.2.5"
8029+
80048030
"@tryghost/[email protected]":
80058031
version "0.3.12"
80068032
resolved "https://registry.yarnpkg.com/@tryghost/promise/-/promise-0.3.12.tgz#90aff21f256767f1d1c06f358f5cf4012552cb34"
@@ -8011,7 +8037,7 @@
80118037
resolved "https://registry.yarnpkg.com/@tryghost/promise/-/promise-0.3.8.tgz#3134a044e187f6d61393267c680c6cc75235aa96"
80128038
integrity sha512-ppcnLBWczpbo4sQcGWtjEA82kdZMv4NFF2MvZRi1MBP4lSOSgh9A636eUxlB1/FpIG+D5ixq84xlY4QJMqW2kA==
80138039

8014-
"@tryghost/[email protected]", "@tryghost/request@^1.0.8":
8040+
"@tryghost/[email protected]":
80158041
version "1.0.8"
80168042
resolved "https://registry.yarnpkg.com/@tryghost/request/-/request-1.0.8.tgz#d2b87fe30bfaa1d9011a8e58152b941161465113"
80178043
integrity sha512-wto/TG5xQ6xq8sKEI/N66C+dxSFORusk4yjtsqZNV3E4LEFfg/2HzrIYH6YW9Iip15uR4u0uKhFRMs0J1RRCuA==
@@ -8023,6 +8049,18 @@
80238049
got "13.0.0"
80248050
lodash "^4.17.21"
80258051

8052+
"@tryghost/request@^1.0.10":
8053+
version "1.0.10"
8054+
resolved "https://registry.yarnpkg.com/@tryghost/request/-/request-1.0.10.tgz#6127d7069483fe7eba1f907af649f1b337a3cd3c"
8055+
integrity sha512-WAmevpwAuwdqqRpAGWIS7mZd4wmSLqKqIFUiW1kFy6UVQX8fNDR8IrryB+3gwzHxrTDUbZLi6cOoXSqSB5GkwA==
8056+
dependencies:
8057+
"@tryghost/errors" "^1.3.7"
8058+
"@tryghost/validator" "^0.2.16"
8059+
"@tryghost/version" "^0.1.32"
8060+
cacheable-lookup "7.0.0"
8061+
got "13.0.0"
8062+
lodash "^4.17.21"
8063+
80268064
"@tryghost/[email protected]":
80278065
version "0.3.30"
80288066
resolved "https://registry.npmjs.org/@tryghost/root-utils/-/root-utils-0.3.30.tgz#766818cd4394b683338f4d9fccc52c435f77b0b5"
@@ -8039,6 +8077,14 @@
80398077
caller "^1.0.1"
80408078
find-root "^1.1.0"
80418079

8080+
"@tryghost/root-utils@^0.3.32":
8081+
version "0.3.32"
8082+
resolved "https://registry.yarnpkg.com/@tryghost/root-utils/-/root-utils-0.3.32.tgz#686acf0aa4e1ab4b2578fc0acf9fe552d51f73f1"
8083+
integrity sha512-fR//LmG+5iapR6sHsh727nD5xu0cLPtEhPpsI8cy/chaBADmJyWMr6ewzq/HenjKxyOH6LIT7Bdmv+kEUvu+Fg==
8084+
dependencies:
8085+
caller "^1.0.1"
8086+
find-root "^1.1.0"
8087+
80428088
"@tryghost/server@^0.1.37":
80438089
version "0.1.37"
80448090
resolved "https://registry.yarnpkg.com/@tryghost/server/-/server-0.1.37.tgz#04ee5671b19a4a5be05e361e293d47eb9c6c2482"
@@ -8078,6 +8124,13 @@
80788124
dependencies:
80798125
lodash.template "^4.5.0"
80808126

8127+
"@tryghost/tpl@^0.1.34":
8128+
version "0.1.34"
8129+
resolved "https://registry.yarnpkg.com/@tryghost/tpl/-/tpl-0.1.34.tgz#f732577f4d34a44edf9705f4cf9b8d53c46c9239"
8130+
integrity sha512-zL3vewM8Pai1SVJiGDPBIVj7+4moDKtcDO9qQl2JblQLXfdxKuDmkh/OoJTGny/wVSANaN57/ZtqFmUPslmqrg==
8131+
dependencies:
8132+
lodash.template "^4.5.0"
8133+
80818134
"@tryghost/[email protected]":
80828135
version "4.4.8"
80838136
resolved "https://registry.yarnpkg.com/@tryghost/url-utils/-/url-utils-4.4.8.tgz#fb867d8bd59a640dc67ab61c1a3d921bd12a8c2b"
@@ -8102,6 +8155,17 @@
81028155
moment-timezone "^0.5.23"
81038156
validator "7.2.0"
81048157

8158+
"@tryghost/validator@^0.2.16":
8159+
version "0.2.16"
8160+
resolved "https://registry.yarnpkg.com/@tryghost/validator/-/validator-0.2.16.tgz#d98fa6e6684fcb3c460646cbd9e18b15964441ee"
8161+
integrity sha512-CO/sdVdgQh9vQiSenJ64flB2C5nVs/1vb/EnnJtjjPNZvSWt+JvdCihVXyIjmX8pRBEbwVcSK1VKaD4Jwiok4Q==
8162+
dependencies:
8163+
"@tryghost/errors" "^1.3.7"
8164+
"@tryghost/tpl" "^0.1.34"
8165+
lodash "^4.17.21"
8166+
moment-timezone "^0.5.23"
8167+
validator "7.2.0"
8168+
81058169
"@tryghost/[email protected]", "@tryghost/version@^0.1.30":
81068170
version "0.1.30"
81078171
resolved "https://registry.yarnpkg.com/@tryghost/version/-/version-0.1.30.tgz#0f6b0eb5e89edcaf829c9199727b6199977b609b"
@@ -8110,6 +8174,14 @@
81108174
"@tryghost/root-utils" "^0.3.30"
81118175
semver "^7.3.5"
81128176

8177+
"@tryghost/version@^0.1.32":
8178+
version "0.1.32"
8179+
resolved "https://registry.yarnpkg.com/@tryghost/version/-/version-0.1.32.tgz#0118381ab297119a10050ed124883a6ee9dd0c87"
8180+
integrity sha512-rLYLvSQGDYsqsZ3a8bolZAMh6Hk/uWd9mdDYhyydZZ8hqibdojtRBgJEg68PpuKKEpY429/abZMpK4HId/wzHA==
8181+
dependencies:
8182+
"@tryghost/root-utils" "^0.3.32"
8183+
semver "^7.3.5"
8184+
81138185
"@tryghost/[email protected]":
81148186
version "0.2.14"
81158187
resolved "https://registry.yarnpkg.com/@tryghost/webhook-mock-receiver/-/webhook-mock-receiver-0.2.14.tgz#6a62bff89a330e69c0112bd688ab25900df91149"
@@ -14305,6 +14377,11 @@ [email protected], date-fns@^2.28.0, date-fns@^2.30.0:
1430514377
dependencies:
1430614378
"@babel/runtime" "^7.21.0"
1430714379

14380+
date-format@^4.0.14:
14381+
version "4.0.14"
14382+
resolved "https://registry.yarnpkg.com/date-format/-/date-format-4.0.14.tgz#7a8e584434fb169a521c8b7aa481f355810d9400"
14383+
integrity sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg==
14384+
1430814385
date-time@^2.1.0:
1430914386
version "2.1.0"
1431014387
resolved "https://registry.yarnpkg.com/date-time/-/date-time-2.1.0.tgz#0286d1b4c769633b3ca13e1e62558d2dbdc2eba2"

0 commit comments

Comments
 (0)