Skip to content

Commit

Permalink
renames error ogging boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
CarlosCoelhoSL committed Dec 4, 2024
1 parent 549b0b0 commit 070c290
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions digital_land/collection.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def load(
source: CSVStore,
directory: str = DEFAULT_COLLECTION_DIR,
after: datetime = None,
debug: bool = True,
error_logging: bool = True,
):
"""
Rebuild or update resource.csv file from the log store.
Expand Down Expand Up @@ -181,7 +181,7 @@ def load(
# This occurs when there is a log for an endpoint, but the endpoint isn't in endpoint.csv/source.csv
# This can happen when there is an unsuccessful attempt to add an endpoint and the log still exists
# In this case we don't want to load this endpoint so skip
if debug:
if error_logging:
logging.error(
f"Log for endpoint {endpoint} detected but endpoint is not in source.csv"
)
Expand Down

0 comments on commit 070c290

Please sign in to comment.