Skip to content

Commit

Permalink
Change logging level
Browse files Browse the repository at this point in the history
  • Loading branch information
augusthorlen0 committed Feb 19, 2024
1 parent bcac33e commit f58f3fd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -134,3 +134,6 @@ dmypy.json

# Pyre type checker
.pyre/

# Vscode
.vscode/*
6 changes: 3 additions & 3 deletions tap_trustpilot/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,12 @@ def get_url(self, context):

def get_business_unit_id(self, website_url):
if website_url in self.websites_checked:
logging.warning(
logging.info(
f"Already have for {website_url} and exitsts in {self.websites_checked}"
)
return self.business_unit_id

logging.warning(
logging.info(
f"Getting {website_url=} and here is the liust {self.websites_checked=}"
)

Expand All @@ -127,7 +127,7 @@ def get_business_unit_id(self, website_url):
self.business_unit_id = res.json().get("id")

self.websites_checked.append(website_url)
logging.warning(f"Fetched {self.business_unit_id=} for {website_url}")
logging.info(f"Fetched {self.business_unit_id=} for {website_url}")

return self.business_unit_id

Expand Down
1 change: 1 addition & 0 deletions tap_trustpilot/tap.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ def config_jsonschema(self) -> dict:
th.Property(
"website_url",
th.ArrayType(th.StringType),
description="A list of all website URLs that Trustpilot reviews should be fetched from"
),
).to_dict()

Expand Down

0 comments on commit f58f3fd

Please sign in to comment.