Skip to content

Commit c795b31

Browse files
committed
fix env
1 parent 431af6a commit c795b31

File tree

2 files changed

+15
-12
lines changed

2 files changed

+15
-12
lines changed

resources/buildConfigDefinitions.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,17 @@ const nestedOptionEnvPrefix = {
3636
IdempotencyOptions: 'PARSE_SERVER_EXPERIMENTAL_IDEMPOTENCY_',
3737
LiveQueryOptions: 'PARSE_SERVER_LIVEQUERY_',
3838
LiveQueryServerOptions: 'PARSE_LIVE_QUERY_SERVER_',
39+
LogClientEvent: 'PARSE_SERVER_DATABASE_LOG_CLIENT_EVENTS_',
40+
LogLevel: 'PARSE_SERVER_LOG_LEVEL_',
41+
LogLevels: 'PARSE_SERVER_LOG_LEVELS_',
3942
PagesCustomUrlsOptions: 'PARSE_SERVER_PAGES_CUSTOM_URL_',
4043
PagesOptions: 'PARSE_SERVER_PAGES_',
4144
PagesRoute: 'PARSE_SERVER_PAGES_ROUTE_',
4245
ParseServerOptions: 'PARSE_SERVER_',
4346
PasswordPolicyOptions: 'PARSE_SERVER_PASSWORD_POLICY_',
44-
SecurityOptions: 'PARSE_SERVER_SECURITY_',
45-
SchemaOptions: 'PARSE_SERVER_SCHEMA_',
46-
LogLevels: 'PARSE_SERVER_LOG_LEVELS_',
4747
RateLimitOptions: 'PARSE_SERVER_RATE_LIMIT_',
48+
SchemaOptions: 'PARSE_SERVER_SCHEMA_',
49+
SecurityOptions: 'PARSE_SERVER_SECURITY_',
4850
};
4951

5052
function last(array) {

src/Options/Definitions.js

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1086,51 +1086,51 @@ module.exports.FileUploadOptions = {
10861086
/* The available log levels for Parse Server logging. Valid values are:<br>- `'error'` - Error level (highest priority)<br>- `'warn'` - Warning level<br>- `'info'` - Info level (default)<br>- `'verbose'` - Verbose level<br>- `'debug'` - Debug level<br>- `'silly'` - Silly level (lowest priority) */
10871087
module.exports.LogLevel = {
10881088
debug: {
1089-
env: 'undefinedDEBUG',
1089+
env: 'PARSE_SERVER_LOG_LEVEL_DEBUG',
10901090
help: 'Debug level',
10911091
required: true,
10921092
},
10931093
error: {
1094-
env: 'undefinedERROR',
1094+
env: 'PARSE_SERVER_LOG_LEVEL_ERROR',
10951095
help: 'Error level - highest priority',
10961096
required: true,
10971097
},
10981098
info: {
1099-
env: 'undefinedINFO',
1099+
env: 'PARSE_SERVER_LOG_LEVEL_INFO',
11001100
help: 'Info level - default',
11011101
required: true,
11021102
},
11031103
silly: {
1104-
env: 'undefinedSILLY',
1104+
env: 'PARSE_SERVER_LOG_LEVEL_SILLY',
11051105
help: 'Silly level - lowest priority',
11061106
required: true,
11071107
},
11081108
verbose: {
1109-
env: 'undefinedVERBOSE',
1109+
env: 'PARSE_SERVER_LOG_LEVEL_VERBOSE',
11101110
help: 'Verbose level',
11111111
required: true,
11121112
},
11131113
warn: {
1114-
env: 'undefinedWARN',
1114+
env: 'PARSE_SERVER_LOG_LEVEL_WARN',
11151115
help: 'Warning level',
11161116
required: true,
11171117
},
11181118
};
11191119
module.exports.LogClientEvent = {
11201120
keys: {
1121-
env: 'undefinedKEYS',
1121+
env: 'PARSE_SERVER_DATABASE_LOG_CLIENT_EVENTS_KEYS',
11221122
help:
11231123
'Optional array of dot-notation paths to extract specific data from the event object. If not provided or empty, the entire event object will be logged.',
11241124
action: parsers.arrayParser,
11251125
},
11261126
logLevel: {
1127-
env: 'undefinedLOG_LEVEL',
1127+
env: 'PARSE_SERVER_DATABASE_LOG_CLIENT_EVENTS_LOG_LEVEL',
11281128
help:
11291129
"The log level to use for this event. See [LogLevel](LogLevel.html) for available values. Defaults to `'info'`.",
11301130
default: 'info',
11311131
},
11321132
name: {
1133-
env: 'undefinedNAME',
1133+
env: 'PARSE_SERVER_DATABASE_LOG_CLIENT_EVENTS_NAME',
11341134
help:
11351135
'The MongoDB driver event name to listen for. See the [MongoDB driver events documentation](https://www.mongodb.com/docs/drivers/node/current/fundamentals/monitoring/) for available events.',
11361136
required: true,
@@ -1276,6 +1276,7 @@ module.exports.DatabaseOptions = {
12761276
env: 'PARSE_SERVER_DATABASE_LOG_CLIENT_EVENTS',
12771277
help: 'An array of MongoDB client event configurations to enable logging of specific events.',
12781278
action: parsers.arrayParser,
1279+
type: 'LogClientEvent[]',
12791280
},
12801281
maxConnecting: {
12811282
env: 'PARSE_SERVER_DATABASE_MAX_CONNECTING',

0 commit comments

Comments
 (0)