Server dep maintenance upgrade
This commit is contained in:
parent
c3544d80b5
commit
804171860e
4 changed files with 1780 additions and 1702 deletions
|
@ -87,6 +87,10 @@
|
||||||
"update-host": "node ./dist/scripts/update-host.js",
|
"update-host": "node ./dist/scripts/update-host.js",
|
||||||
"update-object-storage-url": "LOGGER_LEVEL=warn node ./dist/scripts/update-object-storage-url.js"
|
"update-object-storage-url": "LOGGER_LEVEL=warn node ./dist/scripts/update-object-storage-url.js"
|
||||||
},
|
},
|
||||||
|
"resolutions": {
|
||||||
|
"@types/express": "4.17.9",
|
||||||
|
"@types/express-serve-static-core": "4.19.5"
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@aws-sdk/client-s3": "^3.190.0",
|
"@aws-sdk/client-s3": "^3.190.0",
|
||||||
"@aws-sdk/lib-storage": "^3.190.0",
|
"@aws-sdk/lib-storage": "^3.190.0",
|
||||||
|
@ -95,7 +99,7 @@
|
||||||
"@node-oauth/oauth2-server": "^5.1.0",
|
"@node-oauth/oauth2-server": "^5.1.0",
|
||||||
"@opentelemetry/api": "^1.1.0",
|
"@opentelemetry/api": "^1.1.0",
|
||||||
"@opentelemetry/exporter-jaeger": "^1.15.1",
|
"@opentelemetry/exporter-jaeger": "^1.15.1",
|
||||||
"@opentelemetry/exporter-prometheus": "~0.52.1",
|
"@opentelemetry/exporter-prometheus": "~0.55.0",
|
||||||
"@opentelemetry/instrumentation": "^0.52.1",
|
"@opentelemetry/instrumentation": "^0.52.1",
|
||||||
"@opentelemetry/instrumentation-dns": "^0.38.0",
|
"@opentelemetry/instrumentation-dns": "^0.38.0",
|
||||||
"@opentelemetry/instrumentation-express": "^0.41.1",
|
"@opentelemetry/instrumentation-express": "^0.41.1",
|
||||||
|
|
|
@ -18,7 +18,7 @@ const consoleLoggerFormat = format.printf(info => {
|
||||||
|
|
||||||
if (info.sql) {
|
if (info.sql) {
|
||||||
if (CONFIG.LOG.PRETTIFY_SQL) {
|
if (CONFIG.LOG.PRETTIFY_SQL) {
|
||||||
additionalInfos += '\n' + sqlFormat(info.sql, {
|
additionalInfos += '\n' + sqlFormat(info.sql as string, {
|
||||||
language: 'postgresql',
|
language: 'postgresql',
|
||||||
tabWidth: 2
|
tabWidth: 2
|
||||||
})
|
})
|
||||||
|
|
|
@ -39,7 +39,7 @@ const loggerFormat = winston.format.printf((info) => {
|
||||||
|
|
||||||
if (info.sql) {
|
if (info.sql) {
|
||||||
if (CONFIG.LOG.PRETTIFY_SQL) {
|
if (CONFIG.LOG.PRETTIFY_SQL) {
|
||||||
additionalInfos += '\n' + sqlFormat(info.sql, {
|
additionalInfos += '\n' + sqlFormat(info.sql as string, {
|
||||||
language: 'sql',
|
language: 'sql',
|
||||||
tabWidth: 2
|
tabWidth: 2
|
||||||
})
|
})
|
||||||
|
@ -48,7 +48,7 @@ const loggerFormat = winston.format.printf((info) => {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return `[${info.label}] ${toTimeFormat(info.timestamp)} ${info.level}: ${info.message}${additionalInfos}`
|
return `[${info.label}] ${toTimeFormat(info.timestamp as string)} ${info.level}: ${info.message}${additionalInfos}`
|
||||||
})
|
})
|
||||||
|
|
||||||
const logger = winston.createLogger({
|
const logger = winston.createLogger({
|
||||||
|
|
Loading…
Add table
Reference in a new issue