mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-05 19:42:24 +02:00
Update server dependencies
This commit is contained in:
parent
5bfe684e76
commit
e65ef81cf5
16 changed files with 2045 additions and 1776 deletions
|
@ -3,8 +3,8 @@ import { CONSTRAINTS_FIELDS } from '@server/initializers/constants'
|
|||
import { ClientLogLevel, ServerLogLevel } from '@shared/models'
|
||||
import { exists } from './misc'
|
||||
|
||||
const serverLogLevels: Set<ServerLogLevel> = new Set([ 'debug', 'info', 'warn', 'error' ])
|
||||
const clientLogLevels: Set<ClientLogLevel> = new Set([ 'warn', 'error' ])
|
||||
const serverLogLevels = new Set<ServerLogLevel>([ 'debug', 'info', 'warn', 'error' ])
|
||||
const clientLogLevels = new Set<ClientLogLevel>([ 'warn', 'error' ])
|
||||
|
||||
function isValidLogLevel (value: any) {
|
||||
return exists(value) && serverLogLevels.has(value)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue