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

chore: add emulator check to avoid calling getPowerState for sims #23

Merged
merged 1 commit into from
Jan 13, 2025

Conversation

jasongaare
Copy link
Contributor

When running vibe-check in a simulator, this log is output every time we check the vibes:

WARN  Battery state `unknown` and monitoring disabled, this is normal for simulators and tvOS.

This adds a check to skip the call to getPowerState for a simulator to silence the log.

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
@jasongaare jasongaare merged commit a4f1ddd into main Jan 13, 2025
6 of 8 checks passed
@jasongaare jasongaare deleted the maintenance/silenct-simulator-warning-log branch January 13, 2025 19:30
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.

None yet

3 participants