Skip to content

Commit

Permalink
fix plugin verbosity
Browse files Browse the repository at this point in the history
  • Loading branch information
nsheff committed Oct 10, 2024
1 parent 727fe1f commit 049692d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions refgenconf/populator.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ def get_asset_tag(genome, asset):
return namespaces["project"]["refgenie"]["tag_overrides"][genome][asset]
except KeyError:
default_tag = rgc.get_default_tag(genome=genome, asset=asset)
_LOGGER.info(
_LOGGER.debug(
f"Refgenie asset ({genome}/{asset}) tag not specified in `refgenie.tag_overrides` section. "
f"Using the default tag: {default_tag}"
)
return default_tag
except TypeError:
default_tag = rgc.get_default_tag(genome=genome, asset=asset)
_LOGGER.warn(f"tag_overrides section is malformed. Using default.")
_LOGGER.warning(f"tag_overrides section is malformed. Using default.")
return default_tag

# Restructure the seek key paths to make them accessible with
Expand All @@ -78,7 +78,7 @@ def get_asset_tag(genome, asset):
try:
paths_dict[g][k] = v[tag]
except KeyError:
_LOGGER.warn(
_LOGGER.warning(
f"Can't find tag '{tag}' for asset '{g}/{k}', as specified in your project config. Using default."
)
paths_dict[g][k] = v[rgc.get_default_tag(genome=g, asset=k)]
Expand All @@ -97,7 +97,7 @@ def get_asset_tag(genome, asset):
except KeyError:
_LOGGER.debug("Did not find path_overrides section")
except TypeError:
_LOGGER.warn("Warning: path_overrides is not iterable")
_LOGGER.warning("Warning: path_overrides is not iterable")

# print(paths_dict)
# Provide these values under the 'refgenie' namespace
Expand Down

0 comments on commit 049692d

Please sign in to comment.