From 6bcbb3e32404f6fd05fcd4c0c6328244f4fc3566 Mon Sep 17 00:00:00 2001 From: Viren Baraiya Date: Mon, 1 Jan 2024 19:41:51 -0800 Subject: [PATCH] formatting --- Conductor/Client/Worker/WorkflowTaskExecutor.cs | 2 +- csharp-examples/TestWorker.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Conductor/Client/Worker/WorkflowTaskExecutor.cs b/Conductor/Client/Worker/WorkflowTaskExecutor.cs index b7c86522..5a41137b 100644 --- a/Conductor/Client/Worker/WorkflowTaskExecutor.cs +++ b/Conductor/Client/Worker/WorkflowTaskExecutor.cs @@ -89,7 +89,7 @@ private void Work4Ever(CancellationToken token) } catch (Exception e) { - + _logger.LogError( $"[{_workerSettings.WorkerId}] worker error: {e.Message}" + $", taskName: {_worker.TaskType}" diff --git a/csharp-examples/TestWorker.cs b/csharp-examples/TestWorker.cs index 2b7ac7bb..477760dc 100644 --- a/csharp-examples/TestWorker.cs +++ b/csharp-examples/TestWorker.cs @@ -34,7 +34,7 @@ public async Task Execute(Task task, CancellationToken token) } //Simulate work - once in a while - var sleepTime = rnd.Next(0, 2); + var sleepTime = rnd.Next(0, 2); Thread.Sleep(TimeSpan.FromSeconds(sleepTime)); return result;