From 5dc4e7c058b015fd713fd14eaffbc0b87c6b184b Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Wed, 13 Dec 2017 17:28:33 +0100 Subject: [PATCH] cond_update(): Minor, log service description as well as cmd If you have lots of service/run/tasks using the same cmd it's impossible to tell them apart in debug mode. This patch logs description as well as cmd to improve on this situation a bit. Signed-off-by: Joachim Nilsson --- src/cond-w.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cond-w.c b/src/cond-w.c index 63d98f02..8f77643f 100644 --- a/src/cond-w.c +++ b/src/cond-w.c @@ -95,7 +95,7 @@ static void cond_update(const char *name) if (!svc_has_cond(svc) || !cond_affects(name, svc->cond)) continue; - _d("%s: match <%s> %s", name ?: "nil", svc->cond, svc->cmd); + _d("%s: match <%s> %s(%s)", name ?: "nil", svc->cond, svc->desc, svc->cmd); service_step(svc); } }