@cryptotaxi247 / kubo / commits / 88fa7388d

feat(core) add shutdown message

Brian Tiger Chow committed Jan 28, 2015 at 10:16 UTC 88fa7388de09d104a053e38b229a19c4e4ace6ae
1 file changed +1
core/core.go
+1
@@ -277,6 +277,7 @@ func (n *IpfsNode) startOnlineServicesWithHost(ctx context.Context, maybeRouter
277 // teardown closes owned children. If any errors occur, this function returns
278 // the first error.
279 func (n *IpfsNode) teardown() error {
280 + log.Debug("core is shutting down...")
281 // owned objects are closed in this teardown to ensure that they're closed
282 // regardless of which constructor was used to add them to the node.
283 closers := []io.Closer{