Skip to content

Commit

Permalink
Adjust logging in WS and schedule (#3030)
Browse files Browse the repository at this point in the history
  • Loading branch information
ludeeus committed Jan 22, 2023
1 parent ede3c29 commit dc5af44
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions custom_components/hacs/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -818,11 +818,11 @@ async def async_get_all_category_repositories(self, _=None) -> None:

async def async_get_category_repositories_experimental(self, category: str) -> None:
"""Update all category repositories."""
self.log.info("Fetching updated content for %s", category)
self.log.debug("Fetching updated content for %s", category)
try:
category_data = await self.data_client.get_data(category)
except HacsNotModifiedException:
self.log.info("No updates for %s", category)
self.log.debug("No updates for %s", category)
return
except HacsException as exception:
self.log.error("Could not update %s - %s", category, exception)
Expand Down Expand Up @@ -940,7 +940,7 @@ async def _handle_queue():
return
can_update = await self.async_can_update()
self.log.debug(
"Can update %s repositories, " "items in queue %s",
"Can update %s repositories, items in queue %s",
can_update,
self.queue.pending_tasks,
)
Expand Down
2 changes: 0 additions & 2 deletions custom_components/hacs/websocket/repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,8 +202,6 @@ async def hacs_repositories_remove(
):
"""Remove custom repositoriy."""
hacs: HacsBase = hass.data.get(DOMAIN)
hacs.log.warning(connection.context)
hacs.log.warning(msg)
repository = hacs.repositories.get_by_id(msg["repository"])

repository.remove()
Expand Down

0 comments on commit dc5af44

Please sign in to comment.