diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-07-20 21:04:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-07-20 21:04:32 +0200 |
commit | 2cc59dbfe08e92496b242aed3f2b3cf130beb203 (patch) | |
tree | c3c1bf8ad2677d05cf67122c8647764f7b4d03f9 /src/main.c | |
parent | d8d5ab981a328dd60a39cb495cbf99ca73d76f61 (diff) |
systemctl: always disable color when output goes into a file
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c index aaddce86e0..964bb9cc32 100644 --- 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); |