mesg-foundation / engine

Build apps or autonomous workflows with reusable, shareable integrations connecting any service, app, blockchain or decentralized network.
https://mesg.com/
Apache License 2.0
130 stars 13 forks source link

Move service's log to manager #959

Closed NicolasMahe closed 5 years ago

NicolasMahe commented 5 years ago

In PR https://github.com/mesg-foundation/core/pull/904, the package manager has been introduced to manage the logic between service and container.

Following the logic of moving everything not related to the service's data outside the service package (https://github.com/mesg-foundation/core/issues/958), the service's log struct should also moved to the package manager.

Service log struct: https://github.com/mesg-foundation/core/blob/dev/service/service.go#L88-L92

The service package should have only logic about the service's data and nothing more.

Basically, the file manager.go should only return struct define in its own package.

Please tell if you are agree to move namespace to manager or leave it like this.

ilgooz commented 5 years ago

same as https://github.com/mesg-foundation/core/issues/958#issuecomment-493016903