chore: replace tron logger with shared util - #147
Conversation
There was a problem hiding this comment.
We must not forget to add this to the CI... And we must also not forget that this will introduce shasum shenanigans due to local VS CI mismatch 🐒
There was a problem hiding this comment.
I think all good as we already have this in CI, because bitcoin uses this approach
| } as unknown as ILogger; | ||
| trace: jest.fn(), | ||
| withPrefix: (prefix: string): Logger => createPrefixedLogger([prefix]), | ||
| } as unknown as jest.Mocked<Logger>; |
There was a problem hiding this comment.
Do we still need the unknown?
There was a problem hiding this comment.
yeah because the withPrefix method is tricky to mock
There was a problem hiding this comment.
Can't we just delete ♻️ this?
There was a problem hiding this comment.
we could delete it but I left it to lower required changes since we need to import from some file anyway
99f0575 to
4c09148
Compare
|
@metamaskbot publish-preview |
|
Preview builds have been published. Learn how to use preview builds in other projects. Expand for full list of packages and versions. |
Explanation
Replace Tron logger with shared util class.
Use
LOG_LEVEL=silentprod env variable to disable logger.References
Checklist