Skip to content

Commit

Permalink
Log from activity interceptor
Browse files Browse the repository at this point in the history
  • Loading branch information
sevein committed Sep 4, 2024
1 parent 5fa59f1 commit ca8f57e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions temporal/log.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ var loggerContextKey = contextKey{}

func (a *activityInboundInterceptor) ExecuteActivity(ctx context.Context, in *temporalsdk_interceptor.ExecuteActivityInput) (interface{}, error) {
ctx = context.WithValue(ctx, loggerContextKey, a.logger)

a.logger.V(1).Info("Executing activity.")

return a.Next.ExecuteActivity(ctx, in)
}

Expand Down

0 comments on commit ca8f57e

Please sign in to comment.