We may be running on non-posix systems

This commit is contained in:
Daniil Gentili 2017-07-08 19:25:40 +01:00
parent adc4df525a
commit f9293a67f3

View File

@ -113,7 +113,7 @@ class Logger
self::$colors[self::WARNING] = implode(';', [self::foreground['white'], self::set['dim'], self::background['red']]);
self::$colors[self::ERROR] = implode(';', [self::foreground['white'], self::set['bold'], self::background['red']]);
self::$colors[self::FATAL_ERROR] = implode(';', [self::foreground['red'], self::set['bold'], self::background['light_gray']]);
self::$isatty = posix_isatty(STDOUT);
try { self::$isatty = posix_isatty(STDOUT); } catch (\danog\MadelineProto\Exception $e) { ; }
}
/*