Skip to content

Commit

Permalink
Logging
Browse files Browse the repository at this point in the history
Signed-off-by: Tyler Gu <[email protected]>
  • Loading branch information
tylergu committed Sep 6, 2024
1 parent 27cf341 commit 0bb67e6
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions acto/schema/array.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import random
from typing import List, Tuple

Expand Down Expand Up @@ -101,6 +102,7 @@ def to_tree(self) -> TreeNode:
return node

def load_examples(self, example: list):
logging.debug(f"Loading example {example} into {self}")
self.examples.append(example)
for item in example:
self.item_schema.load_examples(item)
Expand Down
2 changes: 2 additions & 0 deletions acto/schema/object.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import random
from typing import List, Tuple

Expand Down Expand Up @@ -129,6 +130,7 @@ def to_tree(self) -> TreeNode:
return node

def load_examples(self, example: dict):
logging.debug(f"Loading example {example} into {self}")
self.examples.append(example)
for key, value in example.items():
if key in self.properties:
Expand Down
2 changes: 2 additions & 0 deletions acto/schema/string.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import logging
import random
from typing import List, Optional, Tuple

Expand Down Expand Up @@ -47,6 +48,7 @@ def to_tree(self) -> TreeNode:
return TreeNode(self.path)

def load_examples(self, example: str):
logging.debug(f"Loading example {example} into {self}")
self.examples.append(example)

def set_default(self, instance):
Expand Down

0 comments on commit 0bb67e6

Please sign in to comment.