From 01db50a08eb24e253f7d7dd9d5a58b9c783a8a0d Mon Sep 17 00:00:00 2001 From: "Tristan (HouseCat) Hyams" Date: Tue, 23 Apr 2024 14:32:49 -0500 Subject: [PATCH] Update Program.cs --- tests/RabbitMQ.ConsumerDataflowService/Program.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/RabbitMQ.ConsumerDataflowService/Program.cs b/tests/RabbitMQ.ConsumerDataflowService/Program.cs index 67430b9..1d8aff4 100644 --- a/tests/RabbitMQ.ConsumerDataflowService/Program.cs +++ b/tests/RabbitMQ.ConsumerDataflowService/Program.cs @@ -26,7 +26,7 @@ var dataflowService = new ConsumerDataflowService(rabbitService, "TestConsumer"); dataflowService.AddStep( - "write_message_to_console", + "write_message_to_log", (state) => { var message = Encoding.UTF8.GetString(state.ReceivedMessage.Body.Span); @@ -34,7 +34,7 @@ { throw new Exception("Throwing an exception!"); } - Console.WriteLine(message); + logger.LogInformation(message); return state; }); @@ -99,4 +99,4 @@ logger.LogInformation("All stopped! Press return to exit..."); }); -await app.RunAsync(); \ No newline at end of file +await app.RunAsync();