aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/custom-validators/logs.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/custom-validators/logs.ts')
-rw-r--r--server/helpers/custom-validators/logs.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/custom-validators/logs.ts b/server/helpers/custom-validators/logs.ts
index 41d45cbb2..215dbb0e1 100644
--- a/server/helpers/custom-validators/logs.ts
+++ b/server/helpers/custom-validators/logs.ts
@@ -3,8 +3,8 @@ import { CONSTRAINTS_FIELDS } from '@server/initializers/constants'
3import { ClientLogLevel, ServerLogLevel } from '@shared/models' 3import { ClientLogLevel, ServerLogLevel } from '@shared/models'
4import { exists } from './misc' 4import { exists } from './misc'
5 5
6const serverLogLevels: Set<ServerLogLevel> = new Set([ 'debug', 'info', 'warn', 'error' ]) 6const serverLogLevels = new Set<ServerLogLevel>([ 'debug', 'info', 'warn', 'error' ])
7const clientLogLevels: Set<ClientLogLevel> = new Set([ 'warn', 'error' ]) 7const clientLogLevels = new Set<ClientLogLevel>([ 'warn', 'error' ])
8 8
9function isValidLogLevel (value: any) { 9function isValidLogLevel (value: any) {
10 return exists(value) && serverLogLevels.has(value) 10 return exists(value) && serverLogLevels.has(value)