Skip to content

Commit

Permalink
ContentIndexParser: Demote duplicate sheet warnings to debug
Browse files Browse the repository at this point in the history
  • Loading branch information
geoo89 committed Feb 20, 2025
1 parent 3e7d968 commit 8e4613a
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 @@ -125,7 +125,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 @@ -145,7 +145,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 @@ -180,7 +180,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 @@ -234,7 +234,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 8e4613a

Please sign in to comment.