chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
log: unify log env var prefix
[elogind.git]
/
src
/
log.c
diff --git
a/src/log.c
b/src/log.c
index 4840185bc1cabb7896b163494c90211cd03e4649..a47285cb2129130e463ed822767ac1fa501d3088 100644
(file)
--- a/
src/log.c
+++ b/
src/log.c
@@
-474,11
+474,11
@@
void log_parse_environment(void) {
if (log_set_max_level_from_string(e) < 0)
log_warning("Failed to parse log level %s. Ignoring.", e);
if (log_set_max_level_from_string(e) < 0)
log_warning("Failed to parse log level %s. Ignoring.", e);
- if ((e = getenv("SYSTEMD_
SHOW
_COLOR")))
+ if ((e = getenv("SYSTEMD_
LOG
_COLOR")))
if (log_show_color_from_string(e) < 0)
log_warning("Failed to parse bool %s. Ignoring.", e);
if (log_show_color_from_string(e) < 0)
log_warning("Failed to parse bool %s. Ignoring.", e);
- if ((e = getenv("SYSTEMD_
SHOW
_LOCATION"))) {
+ if ((e = getenv("SYSTEMD_
LOG
_LOCATION"))) {
if (log_show_location_from_string(e) < 0)
log_warning("Failed to parse bool %s. Ignoring.", e);
}
if (log_show_location_from_string(e) < 0)
log_warning("Failed to parse bool %s. Ignoring.", e);
}