aeternity / aeproject

Testing framework for Sophia Smart Contract development.
https://docs.aeternity.com/aeproject
ISC License
28 stars 18 forks source link

Consider Aeproject Debug Mode with additional log output #435

Closed davidyuk closed 1 year ago

davidyuk commented 2 years ago

Put console.log in getFilesystem under a debug flag or remove 🤷‍♀️

I'm going to use getFilesystem in cli and the problem is that cli have a JSON-only output mode and I have to apply a workaround like

    const originalConsoleLog = console.log;
    console.log = () => {};
    let fs = utils.getFilesystem(contractSourcePath);
    console.log = originalConsoleLog;

to don't break output JSON structure due to "Adding include to filesystem" message

thepiwo commented 2 years ago

Sounds like something that should be there in general for some reason or the other. For this case and current state it will be easy to copy the module code somewhere else and add the required logs there.

thepiwo commented 1 year ago

@davidyuk can this be closed as getFilesystem has an implementation in the sdk now?

davidyuk commented 1 year ago

Yep! https://docs.aeternity.com/aepp-sdk-js/v13.2.1/api/functions/getFileSystem.html