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:
3a74cea
)
log: include syslog identifier in default log properties, to avoid comm truncation
author
Lennart Poettering
<lennart@poettering.net>
Sat, 21 Apr 2012 23:01:54 +0000
(
01:01
+0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sat, 21 Apr 2012 23:01:54 +0000
(
01:01
+0200)
src/shared/log.c
patch
|
blob
|
history
diff --git
a/src/shared/log.c
b/src/shared/log.c
index a648b837859309c9d29ac564d604e534d057873d..da5309888c4d4aacaa1e869ec18b1b879543db52 100644
(file)
--- a/
src/shared/log.c
+++ b/
src/shared/log.c
@@
-466,12
+466,14
@@
static int write_to_journal(
"CODE_FILE=%s\n"
"CODE_LINE=%i\n"
"CODE_FUNCTION=%s\n"
+ "SYSLOG_IDENTIFIER=%s\n"
"MESSAGE=",
LOG_PRI(level),
LOG_FAC(level),
file,
line,
- func);
+ func,
+ program_invocation_short_name);
char_array_0(header);