mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-19 22:15:24 +00:00
log publish
This commit is contained in:
@@ -132,6 +132,7 @@ func (p *Posts) savePost(ctx context.Context, oldPost, post *proto.Post) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// publish the post as an event
|
// publish the post as an event
|
||||||
|
logger.Info("Publishing post: '%v'", post.Title)
|
||||||
service.NewEvent("posts").Publish(ctx, post)
|
service.NewEvent("posts").Publish(ctx, post)
|
||||||
|
|
||||||
if oldPost == nil {
|
if oldPost == nil {
|
||||||
|
|||||||
Reference in New Issue
Block a user