Conversation
|
buildkite test this |
|
@moxarth-elastic can you provide the debug log output for this during a standard run as requested on the issue? |
Sure, attached a log file here: https://drive.google.com/file/d/1njpVpExhM5Fw_efUgvl9SRxSGOtr-UAA/view?usp=drive_link |
There was a problem hiding this comment.
Nice! I have some change requests.
- I think a log should also be added to
map_permission_with_document(single debug log with keys of docs that will have permissions mapped to them) - The debug logs have inconsistent wording (they use a mix of
Fetching ...orRetrieving ...). Let's useFetchingfor API calls andRetrievingfor other operations (like.getagainst a dict) - The logfile you provided doesn't contain any logs from this PR. Was it on the correct branch when you ran it?
- Also half of the new debug logs are for ACL, but the provided logfile was for a regular sync. Can you also link a logfile for an ACL sync?
connectors/sources/dropbox.py
Outdated
| self._logger.debug( | ||
| f"Token expiration time '{self.token_expiration_time}' is not in the correct format. Converting it into ISO format" | ||
| ) |
There was a problem hiding this comment.
I don't know that this log provides much value. It isn't a significant code fork path and it isn't changing data being synced, it's just fixing a var type. I think it can be removed.
connectors/sources/dropbox.py
Outdated
| async def get_permission(self, permission, account_id): | ||
| permissions = [] | ||
| if identities := permission.get("users"): | ||
| self._logger.debug("Fetching users") |
There was a problem hiding this comment.
I'm unclear on what exactly is being logged here. There are no API calls happening to fetch users. Also there are no logs for invitees or groups. I think this log is unnecessary.
|
I've also just been made aware that a similar PR is out, so I think we should include the missing logs from that PR into this one: #2324 |
|
Too old |
Part Of #2299
Adding more logs in Dropbox connector.
Log file: https://drive.google.com/file/d/1njpVpExhM5Fw_efUgvl9SRxSGOtr-UAA/view?usp=drive_link
Checklists
Pre-Review Checklist
config.yml.example)v7.13.2,v7.14.0,v8.0.0)