1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-10-22 03:12:42 +02:00
metamask-extension/app
Dan J Miller c2163434db 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:16:42 -02:30
..
_locales Fix #20162 - Add Whats New for Global Menu (#20244) 2023-07-28 20:48:40 -02:30
build-types fixes the stake a portfolio icons not showing (#19633) 2023-06-23 11:54:59 +02:00
fonts UI-14395: typography v2 (#15408) 2022-08-18 10:51:53 -07:00
images Fix #20162 - Add Whats New for Global Menu (#20244) 2023-07-28 20:48:40 -02:30
manifest Update mv3 minimum version to chrome v88 (#19358) 2023-05-31 17:43:26 -02:30
scripts Fix and test log.info calls run for each migration (#20517) 2023-08-18 11:16:42 -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