Skip to content

Commit

Permalink
reword log message (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
lixingwang authored Mar 26, 2021
1 parent 95d9884 commit 914d645
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trigger/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func (h *handlerImpl) Handle(ctx context.Context, triggerData interface{}) (resu
newCtx := NewHandlerContext(ctx, h.config)

defer func() {
h.Logger().Infof("Handler [%s] with event id [%s] done, took: %s", handlerName, GetHandlerEventIdFromContext(newCtx), time.Since(GetHandleStartTimeFromContext(newCtx)).String())
h.Logger().Infof("Handler [%s] for event id [%s] completed in %s", handlerName, GetHandlerEventIdFromContext(newCtx), time.Since(GetHandleStartTimeFromContext(newCtx)).String())
if r := recover(); r != nil {
h.Logger().Warnf("Unhandled Error while handling handler [%s]: %v", h.Name(), r)
if h.Logger().DebugEnabled() {
Expand All @@ -143,7 +143,7 @@ func (h *handlerImpl) Handle(ctx context.Context, triggerData interface{}) (resu
}
}()

h.Logger().Infof("Executing handler [%s] with event id [%s]", handlerName, GetHandlerEventIdFromContext(newCtx))
h.Logger().Infof("Executing handler [%s] for event Id [%s]", handlerName, GetHandlerEventIdFromContext(newCtx))
eventData := h.eventData

// check if any event data was attached to the context
Expand Down

0 comments on commit 914d645

Please sign in to comment.