Skip to content

Commit

Permalink
Merge pull request #171 from IDEMSInternational/demote-duplicate-warn…
Browse files Browse the repository at this point in the history
…ings

ContentIndexParser: Demote duplicate sheet warnings to debug
  • Loading branch information
fagiothree authored Feb 21, 2025
2 parents 73c4d22 + 8e4613a commit 4ea8a99
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/rpft/parsers/creation/contentindexparser.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def _process_content_index_table(self, sheet: Sheet):
name = campaign_parser.campaign.name

if name in self.campaign_parsers:
LOGGER.warning(
LOGGER.debug(
f"Duplicate campaign definition sheet '{name}'. "
"Overwriting previous definition."
)
Expand All @@ -155,7 +155,7 @@ def _add_template(self, row, update_duplicates=False):
sheet_name = row.sheet_name[0]

if sheet_name in self.template_sheets and update_duplicates:
LOGGER.info(
LOGGER.debug(
f"Duplicate template definition sheet '{sheet_name}'. "
"Overwriting previous definition."
)
Expand Down Expand Up @@ -193,7 +193,7 @@ def _get_sheet_or_die(self, sheet_name):

if len(candidates) > 1:
readers = [c.reader.name for c in candidates]
LOGGER.warning(
LOGGER.debug(
"Duplicate sheets found, "
+ str(
{
Expand Down Expand Up @@ -247,7 +247,7 @@ def _process_data_sheet(self, row):
new_name = row.new_name or sheet_names[0]

if new_name in self.data_sheets:
LOGGER.warn(
LOGGER.debug(
f"Duplicate data sheet {new_name}. Overwriting previous definition."
)

Expand Down

0 comments on commit 4ea8a99

Please sign in to comment.