Skip to content

Commit

Permalink
move handler execution time log to debug (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
lixingwang authored Aug 5, 2021
1 parent 36a465c commit 8de6262
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion 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] for event id [%s] completed in %s", handlerName, GetHandlerEventIdFromContext(newCtx), time.Since(GetHandleStartTimeFromContext(newCtx)).String())
h.Logger().Debugf("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 Down

0 comments on commit 8de6262

Please sign in to comment.