chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
systemctl: always disable color when output goes into a file
[elogind.git]
/
src
/
main.c
diff --git
a/src/main.c
b/src/main.c
index aaddce86e0543fb83216fe2dadf6a62a74a3d656..964bb9cc325f8bac2cb1fd4d9e0ba58c33e9a8b7 100644
(file)
--- a/
src/main.c
+++ b/
src/main.c
@@
-836,7
+836,7
@@
int main(int argc, char *argv[]) {
return 1;
}
- log_show_color(
true
);
+ log_show_color(
isatty(STDERR_FILENO) > 0
);
log_show_location(false);
log_set_max_level(LOG_INFO);