various: add a fixed name to log about plugin execution

Function execute_directories logged in a way that was meaningless
without additional context:
  systemd[1]: No executables found.
In execute_strv this was partially rectified by extracting the directory
name from one of the directories and using this as the identifier. But
the directory name is not always meaningful, and can also be set from
an environment variable. Let's simplify things by providing a fixed name
that can be used consistently in all log messages. In particular this will
make error messages easier to understand if users report just the error
without additional context.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2025-09-03 08:56:23 +02:00
parent f2d3472131
commit 66b2d758c5
8 changed files with 58 additions and 28 deletions
+1 -1
View File
@@ -1061,7 +1061,7 @@ static int context_execute(Context *c) {
}
ret = execute_strv(
/* name = */ NULL,
"plugins",
c->plugins,
/* root = */ NULL,
USEC_INFINITY,