Selaa lähdekoodia

improve type specification

Peter Bieringer 2 kuukautta sitten
vanhempi
sitoutus
b51dcccd19
1 muutettua tiedostoa jossa 3 lisäystä ja 3 poistoa
  1. 3 3
      radicale/config.py

+ 3 - 3
radicale/config.py

@@ -600,7 +600,7 @@ This is an automated message. Please do not reply.""",
         ("profiling_per_request_min_duration", {
             "value": "3",
             "help": "log profiling data per request minimum duration (seconds)",
-            "type": int}),
+            "type": positive_int}),
         ("profiling_per_request_header", {
             "value": "False",
             "help": "Log profiling request body (if passing minimum duration)",
@@ -612,11 +612,11 @@ This is an automated message. Please do not reply.""",
         ("profiling_per_request_method_interval", {
             "value": "600",
             "help": "log profiling data per request method interval (seconds)",
-            "type": int}),
+            "type": positive_int}),
         ("profiling_top_x_functions", {
             "value": "10",
             "help": "log profiling top X functions (limit)",
-            "type": int}),
+            "type": positive_int}),
         ("mask_passwords", {
             "value": "True",
             "help": "mask passwords in logs",