Skip to content

Commit 18d96c8

Browse files
committed
Add prints for logfile
1 parent 6f59e34 commit 18d96c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/validate_user_input.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ def validate_user_input(comment_body):
88
match = re.search(r'```json(.*?)```', comment_body, re.DOTALL)
99
if match:
1010
json_content = match.group(1).strip()
11+
print(json_content)
1112
return json_content
1213
raise ValueError('No JSON content found in the comment body')
1314

1415
def convert_to_json(comment_body):
1516
# Convert the dictionary back to a JSON string
1617
json_str = json.dumps(json.loads(comment_body), indent=4)
18+
print(json_str)
1719

1820
# Write the JSON string to a file
1921
with open('config.json', 'w') as f:

0 commit comments

Comments
 (0)