diff --git a/easyapi/logScript.py b/easyapi/logScript.py index 8f076c4..8ee7b0c 100644 --- a/easyapi/logScript.py +++ b/easyapi/logScript.py @@ -41,6 +41,9 @@ class StdTimeFilter: else: old_stderr.flush() + def isatty(self): + return sys.__stdout__.isatty() + def socket_wrap(func): def wrap_func(event, data, sid=None):