added logging
This commit is contained in:
@@ -2,6 +2,7 @@ from pydantic import BaseModel
|
||||
from typing import List
|
||||
import yaml
|
||||
from pathlib import Path
|
||||
import logging
|
||||
|
||||
|
||||
class RunnerScript(BaseModel):
|
||||
@@ -13,6 +14,7 @@ class RunnerScript(BaseModel):
|
||||
with open(path, 'r') as fh:
|
||||
content_dict = yaml.safe_load(fh)
|
||||
script_list = content_dict['script'].split('\n')
|
||||
logging.debug('finished')
|
||||
return RunnerScript.model_validate({'script': script_list})
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user