Fix task assingment

Change-Id: Id6df2c34fae9e2ae283819ddbdb972cc60464abf
diff --git a/server/agent/agent.go b/server/agent/agent.go
index ed4706d..eca7b62 100644
--- a/server/agent/agent.go
+++ b/server/agent/agent.go
@@ -264,6 +264,7 @@
 
 	// Get tasks assigned to this agent
 	taskList, err := a.Config.TaskManager.GetTasksByOwner(ctx, a.Config.Name, 0, 10)
+	a.logger.Info("Total number of Tasks", slog.String("agent", a.Config.Name), slog.Any("tasks", taskList.TotalCount))
 	if err != nil {
 		return fmt.Errorf("failed to get tasks: %w", err)
 	}
@@ -277,6 +278,8 @@
 		}
 	}
 
+	a.logger.Info("Task to process", slog.Any("task", taskToProcess))
+
 	if taskToProcess == nil {
 		// No tasks to process, wait a bit
 		time.Sleep(60 * time.Second)