mirror of
https://github.com/troglobit/finit.git
synced 2026-11-03 13:28:27 +00:00
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 <troglobit@gmail.com>
This commit is contained in:
1 parent
3c015f384d
commit
5dc4e7c058
1 file changed
+1
-1
+1
-1
@@ -95,7 +95,7 @@ static void cond_update(const char *name)
|
|||||||
if (!svc_has_cond(svc) || !cond_affects(name, svc->cond))
|
if (!svc_has_cond(svc) || !cond_affects(name, svc->cond))
|
||||||
continue;
|
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);
|
service_step(svc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user