1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-21 17:37:01 +01:00
metamask-extension/app
Dan J Miller ca1ddeb59b
Fix and test log.info calls run for each migration (#20517)
* Fix and test log.info calls run for each migration

In migrator/index.js, log.info is called before an after each migration.
These calls are intended to produce breadcrumbs to be captured by sentry
in cases where errors happen during or shortly after migrations are run.
These calls were not causing any output to the console because the log.setLevel
calls in ui/index.js were setting a 'warn value in local storage that was being
used by logLevel in the background.

This commit fixes the problem by setting the `persist` param of setLevel to
false, so that the background no longer reads the ui's log level.

Tests are added to verify that these logs are captured in sentry breadcrumbs
when there is a migration error due to an invariant state.

* Improve breadcrumb message matching

The test modified in this commit asserts eqaulity of  messages from breadcrumbs
and hard coded expected results. This could cause failures, as sometimes the
messages contain whitespace characters. This commit ensures the assertions only
check that the expected string is within the message string, ignoring extra
characters.
2023-08-18 11:15:45 -02:30
..
_locales Fix Typo in en.json (#20429) 2023-08-16 15:36:33 -02:30
build-types [MMI] Fix element UI in MMI (#20176) 2023-07-26 11:51:11 +02:00
fonts UI-14395: typography v2 (#15408) 2022-08-18 10:51:53 -07:00
images Whats new blockaid popup (#20071) 2023-08-02 16:14:02 +01:00
manifest Integrating ppom-validator with extension (#19511) 2023-07-12 19:50:55 +05:30
scripts Fix and test log.info calls run for each migration (#20517) 2023-08-18 11:15:45 -02:30
vendor/trezor Update postMessage structure for TrezorConnect 8 (#10192) 2021-01-21 11:12:54 -06:00
background.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
home.html [MMI] Conditional change title in home if buildType is MMI (#17898) 2023-03-02 10:18:46 -06:00
loading.html refactor & change html pages 2019-05-04 18:57:19 +02:00
notification.html [MMI] Added custom title for institutional (#19844) 2023-06-30 15:53:55 +02:00
popup.html Integrating snow into metamask (#15580) 2022-11-24 02:36:19 +02:00
trezor-usb-permissions.html chore: Adjust trailing whitespace (#15636) 2022-08-24 14:11:49 -05:00