aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-04-24 15:26:14 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-04-24 15:26:14 +0200
commit09f04b566f49aa5d6514b21f75b9caa8cf9491f3 (patch)
treeeb368570f095e94bfab124e8ea512770d7d19d5d
parent085c85c328b638b441a6f783348a025798fa85ab (diff)
Add more agent tracing
-rw-r--r--bbot/agent.cxx6
1 files changed, 6 insertions, 0 deletions
diff --git a/bbot/agent.cxx b/bbot/agent.cxx
index 0840739..a40e9e9 100644
--- a/bbot/agent.cxx
+++ b/bbot/agent.cxx
@@ -908,6 +908,11 @@ try
if (!tr.session.empty ()) // Got a task.
{
url = u;
+
+ task_manifest& t (*tr.task);
+ l2 ([&]{trace << "task for " << t.name << '/' << t.version << " "
+ << "on " << t.machine << " "
+ << "from " << url;});
break;
}
}
@@ -915,6 +920,7 @@ try
if (tr.session.empty ()) // No task from any of the controllers.
{
+ l2 ([&]{trace << "no tasks from any controllers, sleeping";});
sleep = true;
continue;
}