nette / tracy

😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.
https://tracy.nette.org
Other
1.76k stars 218 forks source link

Class "Tracy\FireLogger" not found #514

Closed slepic closed 3 years ago

slepic commented 3 years ago

Version: 2.7.1 - 2.8.5 (probably up to current - 2.8.7 - but not tried)

Bug Description

If productionMode is false and showFireLogger is true I get this error when trying tog an error

Class "Tracy\FireLogger" not found

/vendor/tracy/tracy/src/Tracy/Debugger/Debugger.php in Tracy\Debugger::getFireLogger at line 513

Expected Behavior

the FireLogger class is autoloaded by tracy automatically

Possible Solution

as workaround i require_once the FireLogger class manually before using tracy

True solution however probably lies in this commit https://github.com/nette/tracy/commit/54ec37a25654c53119559eeba7de21b24d8a2889 where preloading of some classes was refactored but the FireLogger class was dropped from the list and it should be added back to the list