Explicitly restrict log level options to those that are documented

Fixes https://github.com/meilisearch/meilisearch/issues/3292
This commit is contained in:
Loïc Lecrenier 2023-01-03 11:55:34 +01:00
parent 947f08793a
commit d082ded7ad
4 changed files with 65 additions and 14 deletions

View file

@ -306,7 +306,7 @@ impl From<Opt> for Infos {
max_index_size,
max_task_db_size,
http_payload_size_limit,
log_level,
log_level: log_level.to_string(),
max_indexing_memory,
max_indexing_threads,
with_configuration_file: config_file_path.is_some(),