We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5db0f49 commit f9a1c61Copy full SHA for f9a1c61
aliyun/log/index_config.py
@@ -62,8 +62,8 @@ def to_json(self, json_value):
62
json_value["json_keys"] = self.json_keys
63
64
def from_json(self, json_value) :
65
- self.index_all = json_value["index_all"]
66
- self.max_depth = json_value["max_depth"]
+ self.index_all = json_value.get("index_all", True)
+ self.max_depth = json_value.get("max_depth", -1)
67
self.alias = None
68
self.json_keys = {}
69
if "alias" in json_value:
0 commit comments