From 45bd8a3ef52418728b6670074b03589ac854e64e Mon Sep 17 00:00:00 2001 From: Igor Timarac Date: Fri, 22 Sep 2023 13:54:53 +0200 Subject: [PATCH] DelpoymentService: Report workflow/task count ...when registering workflows. This info is quite useful and should be visible in logs even if debug logging is not enabled. --- src/ConductorSharp.Engine/Service/DeploymentService.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/ConductorSharp.Engine/Service/DeploymentService.cs b/src/ConductorSharp.Engine/Service/DeploymentService.cs index 59d4f814..15601655 100644 --- a/src/ConductorSharp.Engine/Service/DeploymentService.cs +++ b/src/ConductorSharp.Engine/Service/DeploymentService.cs @@ -35,7 +35,11 @@ public async Task Deploy(Deployment deployment) // TODO: Add registration for event handlers - _logger.LogInformation("Finished deploying conductor definitions"); + _logger.LogInformation( + "Finished deploying conductor definitions ({registeredTasksCount} tasks, {registeredWorkflowsCount} workflows)", + deployment.TaskDefinitions.Count, + deployment.WorkflowDefinitions.Count + ); } public async Task Remove(Deployment deployment)