Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change logging level #2

Merged
merged 1 commit into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading