Skip to content

Commit 29adafd

Browse files
authored
Make logger of test workflow environment changeable (#1036)
1 parent 4b81202 commit 29adafd

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/internal_workflow_testsuite.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ func (env *testWorkflowEnvironmentImpl) setWorkerOptions(options WorkerOptions)
431431
if len(options.ContextPropagators) > 0 {
432432
env.workerOptions.ContextPropagators = options.ContextPropagators
433433
}
434+
if options.Logger != nil {
435+
env.workerOptions.Logger = options.Logger
436+
}
434437
env.workflowInterceptors = options.WorkflowInterceptorChainFactories
435438
}
436439

0 commit comments

Comments
 (0)