diff options
Diffstat (limited to 'server/helpers/custom-validators/logs.ts')
-rw-r--r-- | server/helpers/custom-validators/logs.ts | 4 |
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' | |||
3 | import { ClientLogLevel, ServerLogLevel } from '@shared/models' | 3 | import { ClientLogLevel, ServerLogLevel } from '@shared/models' |
4 | import { exists } from './misc' | 4 | import { exists } from './misc' |
5 | 5 | ||
6 | const serverLogLevels: Set<ServerLogLevel> = new Set([ 'debug', 'info', 'warn', 'error' ]) | 6 | const serverLogLevels = new Set<ServerLogLevel>([ 'debug', 'info', 'warn', 'error' ]) |
7 | const clientLogLevels: Set<ClientLogLevel> = new Set([ 'warn', 'error' ]) | 7 | const clientLogLevels = new Set<ClientLogLevel>([ 'warn', 'error' ]) |
8 | 8 | ||
9 | function isValidLogLevel (value: any) { | 9 | function isValidLogLevel (value: any) { |
10 | return exists(value) && serverLogLevels.has(value) | 10 | return exists(value) && serverLogLevels.has(value) |