summaryrefslogtreecommitdiff
path: root/src/shared/log.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-22 01:01:54 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-22 01:01:54 +0200
commitd29b05a4619c000918cbb9f1b9661bc53659c0b2 (patch)
tree7c32c0e2cd387f16da112d0d845d0bc4704737c1 /src/shared/log.c
parent3a74cea5e4cea6d6f852a2a7118efe0e339b78c7 (diff)
log: include syslog identifier in default log properties, to avoid comm truncation
Diffstat (limited to 'src/shared/log.c')
-rw-r--r--src/shared/log.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shared/log.c b/src/shared/log.c
index a648b83785..da5309888c 100644
--- 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);