joomla/joomla-platform — Issue #849: Bug in JLog || JLoggerFormattedText
Author: okonomiyaki3000
Created: 2012-02-10 05:12:20+00:00
State: open

JLoggerFormattedText::addEntry changes the value of $entry->priority to a string. This causes trouble if more than one logger is handling this entry (other loggers will find a string where they expected to find an integer). The solution is either to not make that kind of change to the entry at all or to clone $entry before passing to the logger class' "addEntry" method. I prefer cloning because it makes future errors of this type impossible.