okTurtles / group-income

A decentralized and private (end-to-end encrypted) financial safety net for you and your friends.
https://groupincome.org
GNU Affero General Public License v3.0
331 stars 44 forks source link

Contract logs don't get saved to the application logs #2270

Open taoeffect opened 3 months ago

taoeffect commented 3 months ago

Problem

The window console that's used by the contracts is not the overwritten one that's in captureLogs.js, because 'chelonia/private/loadManifest' (which sets the console object that's used by the contracts) gets called by 'chelonia/configure' before captureLogsStart gets called.

Solution

Unclear, we need a non-GI-specific way of solving this, perhaps using events, perhaps by passing in a custom value via exposedGlobals.