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

Decrease HealthKitManager debug logging #372

Merged
merged 2 commits into from
Aug 4, 2024

Conversation

marionbarker
Copy link
Contributor

@marionbarker marionbarker commented Aug 3, 2024

  • disable some debug logging when AppleHealth is enabled

See Issue #371 for explanation for this PR.

Additional comments

  • most of the excessive lines came in as debug logging in PR Backport HealthKit fix to earlier version #22
  • other debug log lines have been removed over time in various commits
  • these particular lines were identified by @itsmojo as being unnecessary when he analyzed results

Testing

  • I confirmed the extra lines appeared when Apple Health and Dynamic Features are enabled
  • I tested the patch supplied by @itsmojo and confirm the excessive debug logging (for this case) is removed

* disable some debug logging when AppleHealth and Dynamic features are enabled
@AndreasStokholm
Copy link
Contributor

Seeing as PR 22 is merged quite a while in the past and it seems to be stable. Maybe the debugging I added can be removed completely instead of just commenting it out.

@marionbarker
Copy link
Contributor Author

marionbarker commented Aug 3, 2024

Deleted comment. Got help from Joe.

@marionbarker
Copy link
Contributor Author

Ready for review again. I removed the debug lines instead of commenting them out.

Copy link
Contributor

@MikePlante1 MikePlante1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree those logs aren't needed and the PR only removes debug() lines. Successful build to a simulator to confirm lint-free.

@MikePlante1 MikePlante1 merged commit 0efde61 into nightscout:dev Aug 4, 2024
1 check passed
@MikePlante1 MikePlante1 mentioned this pull request Aug 17, 2024
mountrcg pushed a commit to mountrcg/Trio that referenced this pull request Sep 11, 2024
…logging

Decrease HealthKitManager debug logging
@marionbarker marionbarker deleted the remove-excessive-logging branch October 3, 2024 01:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants