From a9b80cb53e0fc614f2136f50f3f6904aff161665 Mon Sep 17 00:00:00 2001 From: Asim Aslam Date: Mon, 1 Mar 2021 15:28:04 +0000 Subject: [PATCH] log publish --- posts/handler/posts.go | 1 + 1 file changed, 1 insertion(+) diff --git a/posts/handler/posts.go b/posts/handler/posts.go index a684124..7770a91 100644 --- a/posts/handler/posts.go +++ b/posts/handler/posts.go @@ -132,6 +132,7 @@ func (p *Posts) savePost(ctx context.Context, oldPost, post *proto.Post) error { } // publish the post as an event + logger.Info("Publishing post: '%v'", post.Title) service.NewEvent("posts").Publish(ctx, post) if oldPost == nil {