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

change(mac): remove verbose logging option #12431

Merged
merged 2 commits into from
Sep 20, 2024

Conversation

sgschantz
Copy link
Contributor

@sgschantz sgschantz commented Sep 17, 2024

In the Options tab of the Configuration window, removed the checkbox titled 'Use verbose Console logging'.
Also remove code related to debug mode. Instead of using the verbose logging option to determine whether we are in debug mode or not, write to the log based solely on the unified logging settings for Keyman. This change follows naturally from #11515.

Because the related UserDefaults setting is retired, introduce a new UserDefaults flag with a narrower scope to force a sentry crash for testing purposes. The key for this flag is "KMForceSentryError". It is not tied to any UI but can be set manually from the command line if needed for testing purposes.

Fixes: #11525

@keymanapp-test-bot skip

also remove related debug mode code, debug logging
is controlled solely by universal logging settings

Fixes: #11525
@sgschantz sgschantz added the mac/ label Sep 17, 2024
@sgschantz sgschantz added this to the A18S11 milestone Sep 17, 2024
@sgschantz sgschantz self-assigned this Sep 17, 2024
@keymanapp-test-bot keymanapp-test-bot bot added the user-test-missing User tests have not yet been defined for the PR label Sep 17, 2024
@keymanapp-test-bot
Copy link

keymanapp-test-bot bot commented Sep 17, 2024

User Test Results

Test specification and instructions

User tests are not required

Test Artifacts

@darcywong00
Copy link
Contributor

CI build failed with

build:testapp starting...
08:59:58   /.../keyman/mac/Keyman4Mac/Keyman4Mac/AppDelegate.m:230:11: error: use of undeclared identifier 'debugMode'
08:59:58         if (debugMode) {

@keymanapp-test-bot keymanapp-test-bot bot removed the user-test-missing User tests have not yet been defined for the PR label Sep 19, 2024
Copy link
Contributor

@darcywong00 darcywong00 left a comment

Choose a reason for hiding this comment

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

lgtm

We'll also need to update the in-app help

https://help.keyman.com/products/mac/18.0/basic/config/options

@sgschantz sgschantz merged commit d28c2f3 into master Sep 20, 2024
5 checks passed
@sgschantz sgschantz deleted the change/mac/11525-remove-verbose-logging branch September 20, 2024 05:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

change(mac): remove 'Use verbose Console logging' option
2 participants