Skip to content

Commit

Permalink
fixed previously broken and optimized logger entry
Browse files Browse the repository at this point in the history
  • Loading branch information
bensteUEM committed Oct 7, 2024
1 parent 3af967f commit 1b7bf1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions churchtools_api/events.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def get_AllEventData_ajax(self, eventId) -> dict:
response_content = json.loads(response.content)
if len(response_content["data"]) > 0:
response_data = response_content["data"][str(eventId)]
logger.debug(f"AJAX Event data {response_data}")
logger.debug(f"AJAX Event data len= {len(response_data)}")
return response_data
logger.info(
f"AJAX All Event data not successful - no event found: {response.status_code}",
Expand Down Expand Up @@ -340,7 +340,7 @@ def get_event_agenda(self, eventId: int) -> list:
if response.status_code == 200:
response_content = json.loads(response.content)
response_data = response_content["data"].copy()
logger.debug(f"Agenda load successful {response_content}")
logger.debug(f"Agenda load successful {len(response_content)} items")

return response_data
logger.info(
Expand Down
2 changes: 1 addition & 1 deletion churchtools_api/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ def file_download(
# If folder doesn't exist, then create it.
if not CHECK_FOLDER:
os.makedirs(target_path)
logger("created folder : %s", target_path)
logger.info("created folder : %s", target_path)
url = f"{self.domain}/api/files/{domain_type}/{domain_identifier}"

response = self.session.get(url=url)
Expand Down

0 comments on commit 1b7bf1f

Please sign in to comment.