mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-03 09:49:20 +02:00
Server dep maintenance upgrade
This commit is contained in:
parent
c3544d80b5
commit
804171860e
4 changed files with 1780 additions and 1702 deletions
|
@ -39,7 +39,7 @@ const loggerFormat = winston.format.printf((info) => {
|
|||
|
||||
if (info.sql) {
|
||||
if (CONFIG.LOG.PRETTIFY_SQL) {
|
||||
additionalInfos += '\n' + sqlFormat(info.sql, {
|
||||
additionalInfos += '\n' + sqlFormat(info.sql as string, {
|
||||
language: 'sql',
|
||||
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({
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue