chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a5e4972
)
execute: always add in EXECUTABLE= field when we log something about execution
author
Lennart Poettering
<lennart@poettering.net>
Thu, 18 Apr 2013 00:18:33 +0000
(
02:18
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 18 Apr 2013 00:18:33 +0000
(
02:18
+0200)
src/core/execute.c
patch
|
blob
|
history
diff --git
a/src/core/execute.c
b/src/core/execute.c
index c363342e805ee4c083a8d83cf14acabdf2cc941c..aad11c94aa4c6e883f1217c9229d9bb61e01c2be 100644
(file)
--- a/
src/core/execute.c
+++ b/
src/core/execute.c
@@
-1036,9
+1036,10
@@
int exec_spawn(ExecCommand *command,
return log_oom();
log_struct_unit(LOG_DEBUG,
- unit_id,
- "MESSAGE=About to execute %s", line,
- NULL);
+ unit_id,
+ "EXECUTABLE=%s", command->path,
+ "MESSAGE=About to execute: %s", line,
+ NULL);
free(line);
r = cgroup_bonding_realize_list(cgroup_bondings);
@@
-1523,8
+1524,8
@@
int exec_spawn(ExecCommand *command,
log_struct_unit(LOG_DEBUG,
unit_id,
"EXECUTABLE=%s", command->path,
- "MESSAGE=Executing: %s",
-
line,
NULL);
+ "MESSAGE=Executing: %s",
line,
+ NULL);
log_close();
free(line);
line = NULL;