Skip to content

Commit

Permalink
fix: update logging to debug in ExportReader
Browse files Browse the repository at this point in the history
Signed-off-by: Jennifer Power <[email protected]>
  • Loading branch information
jpower432 committed Sep 13, 2023
1 parent b1d438e commit 80b41e7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions trestle/core/crm/export_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ class ExportReader:
By-Component Assembly Exports Markdown reader.
Export reader handles all operations related to reading authored inherited and satisfied statements from exports
in Markdown.
in Markdown. The reader will read all the markdown files in the exports directory and update the SSP with the
inheritance.
"""

def __init__(self, root_path: pathlib.Path, ssp: ossp.SystemSecurityPlan):
Expand All @@ -49,7 +50,7 @@ def __init__(self, root_path: pathlib.Path, ssp: ossp.SystemSecurityPlan):
Arguments:
root_path: A root path object where an SSP's inheritance markdown is located.
ssp: A system security plan with exports
ssp: A system security plan object that will be updated with the inheritance information.
"""
self._ssp: ossp.SystemSecurityPlan = ssp

Expand All @@ -75,7 +76,7 @@ def read_exports_from_markdown(self) -> ossp.SystemSecurityPlan:

# Process remaining markdown information that was not in the implemented requirements
for control_id, by_comp_dict in markdown_dict.items():
logging.info(f'Adding control mapping {control_id} to implemented requirements')
logging.debug(f'Adding control mapping {control_id} to implemented requirements')
self._add_control_mappings_to_implemented_requirements(control_id, by_comp_dict)

impl_requirements: List[ossp.ImplementedRequirement] = []
Expand Down

0 comments on commit 80b41e7

Please sign in to comment.