mirror of
https://github.com/zhamao-robot/zhamao-logger.git
synced 2026-07-11 02:35:35 +08:00
When the terminal (IDE) is closed without stopping the framework first, the PTY is destroyed and STDOUT/STDERR become broken file descriptors. Any subsequent log call via echo/fwrite fails with E_WARNING, the error handler catches it and calls the logger again, creating a recursive loop that consumes 100% CPU. Changes: - Add static $in_log recursion guard flag to ConsoleLogger - Wrap log output (echo/fwrite/fflush) with the guard and @ suppression - Bump version from 1.1.6 to 1.1.7