Skip to content

Commit

Permalink
process.py: Add logging
Browse files Browse the repository at this point in the history
  • Loading branch information
Ed (ODSC) committed Sep 24, 2024
1 parent cacdcd0 commit c5444a8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cove_bods/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
from libcoveweb2.utils import get_file_type_for_flatten_tool
from libcoveweb2.utils import group_data_list_by

from logging import getLogger

logger = getLogger(__name__)

def create_error_file(directory: str, name: str, data: dict):
"""Create temporary error file"""
Expand Down Expand Up @@ -235,6 +238,7 @@ def process(self, process_data: dict) -> dict:
)
process_data['config'] = LibCoveBODSConfig()
process_data['schema'] = SchemaBODS(process_data['data_reader'], process_data['config'])
logger.info("Schema version:", process_data['schema'].schema_version)
# Save some to disk for templates
if not os.path.exists(self.data_filename):
save_data = {
Expand Down

0 comments on commit c5444a8

Please sign in to comment.