aboutsummaryrefslogtreecommitdiff
path: root/src/libutil/logging.cc
diff options
context:
space:
mode:
authorYestin L. Harrison <yestin@ylh.io>2021-07-01 18:19:01 -0600
committerYestin L. Harrison <yestin@ylh.io>2021-07-01 18:19:01 -0600
commit20cce079f258dc3f62340ecd7b9de1bbd99ef814 (patch)
tree348b44b7537de6235e6a78914155c18f239166f6 /src/libutil/logging.cc
parent139f7af5ec40ca75ad2ef9393c5029f0850105d9 (diff)
Respect TERM=dumb more consistently
Diffstat (limited to 'src/libutil/logging.cc')
-rw-r--r--src/libutil/logging.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libutil/logging.cc b/src/libutil/logging.cc
index d2e801175..6b9b850ca 100644
--- a/src/libutil/logging.cc
+++ b/src/libutil/logging.cc
@@ -46,7 +46,7 @@ public:
: printBuildLogs(printBuildLogs)
{
systemd = getEnv("IN_SYSTEMD") == "1";
- tty = isatty(STDERR_FILENO);
+ tty = shouldANSI();
}
bool isVerbose() override {