poetapp / node

The core of Po.et
https://docs.poetnetwork.net/
MIT License
194 stars 27 forks source link

Refactor Log #702

Open kennylavender opened 5 years ago

kennylavender commented 5 years ago

We are now using a curried log method with pipeP/asyncPipe pretty successfully, I think its time we extract it into a helper or something so that files can import a function that returns log and the types instead of repeating the pattern everywhere.

lautarodragan commented 5 years ago

Agreed. This is not needed for mainnet, but we're introducing a bunch of duplicated code which this refactor would avoid. Should be pretty small, too.