Skip to content

Commit 3b40794

Browse files
author
Thibault Leroy
committed
feat(consumer): log graceful shutdown
1 parent 15bc96b commit 3b40794

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

consume.go

+1
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ func (consumer *Consumer) Run(handler Handler) error {
122122
// Only call once.
123123
func (consumer *Consumer) Close() {
124124
if consumer.options.CloseGracefully {
125+
consumer.options.Logger.Infof("waiting for handlers to finish...")
125126
err := consumer.waitForHandlers(context.Background())
126127
if err != nil {
127128
consumer.options.Logger.Warnf("error while waiting for handler to finish: %v", err)

0 commit comments

Comments
 (0)