diff --git a/.changelogs/1.0.5/98_fix_log_verbosity_opts.yml b/.changelogs/1.0.5/98_fix_log_verbosity_opts.yml new file mode 100644 index 0000000..333cf4b --- /dev/null +++ b/.changelogs/1.0.5/98_fix_log_verbosity_opts.yml @@ -0,0 +1,2 @@ +fixed: + - Fix allowed values (add DEBUG, WARNING) for log verbosity. [#98] diff --git a/README.md b/README.md index a7b9316..e88c482 100644 --- a/README.md +++ b/README.md @@ -133,7 +133,7 @@ The following options can be set in the `proxlb.conf` file: | `service`| daemon | 1 | Run as a daemon (1) or one-shot (0). (default: 1, type: bool) | | | schedule | 24 | Hours to rebalance in hours. (default: 24) | | | master_only | 0 | Defines is this should only be performed (1) on the cluster master node or not (0). (default: 0, type: bool) | -| | log_verbosity | INFO | Defines the log level (default: CRITICAL) where you can use `INFO` or `CRITICAL` | +| | log_verbosity | INFO | Defines the log level (default: CRITICAL) where you can use `DEBUG`, `INFO`, `WARNING` or `CRITICAL` | | | config_version | 3 | Defines the current config version schema for ProxLB | An example of the configuration file looks like: diff --git a/proxlb b/proxlb index 0a7e24d..359170b 100755 --- a/proxlb +++ b/proxlb @@ -190,7 +190,7 @@ def __validate_config_content(proxlb_config): 'vm_balancing_mode_option': ['bytes', 'percent'], 'vm_balancing_type': ['vm', 'ct', 'all'], 'storage_balancing_method': ['disk_space'], - 'log_verbosity': ['INFO', 'CRITICAL'] + 'log_verbosity': ['DEBUG', 'INFO', 'WARNING', 'CRITICAL'] } for string_val in validate_string_options: