-
-
Notifications
You must be signed in to change notification settings - Fork 33k
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
Log cloud backup agent file list #134556
Log cloud backup agent file list #134556
Conversation
Hey there @home-assistant/cloud, mind taking a look at this pull request as it has been labeled with an integration ( Code owner commandsCode owners of
|
@@ -208,6 +210,7 @@ async def async_list_backups(self, **kwargs: Any) -> list[AgentBackup]: | |||
"""List backups.""" | |||
try: | |||
backups = await async_files_list(self._cloud, storage_type=_STORAGE_BACKUP) | |||
_LOGGER.debug("Cloud backups: %s", backups) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can/will become large and should be guarded so it's not sent to the logger unless debug is enabled for this logger.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is already? As in, this is lazy logged?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So we can remove all of these (_LOGGER.isEnabledFor(logging.DEBUG)
) then example.
Proposed change
Log cloud backup agent file list
The change is aimed at making it possible to debug issues such as #134374
Type of change
Additional information
Checklist
ruff format homeassistant tests
)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest
.requirements_all.txt
.Updated by running
python3 -m script.gen_requirements_all
.To help with the load of incoming pull requests: