Subject: | Incompatibility with newer version of Mojolicious |
Date: | Thu, 6 Mar 2014 14:56:12 +0100 |
To: | bug-MojoX-Log-Log4perl [...] rt.cpan.org |
From: | Olivier Duclos <olivier.duclos [...] capabilis.com> |
Hi,
Using Mojolicious 4.87 and MojoX::Log::Log4perl 0.08, when an error occures
in Mojolicious, I get the following error :
Event "read" failed: Can't locate object method "history" via package
"Log::Log4perl::Logger" at inline template 3c057dacc1089aca8e7d6d310c180d08
line 233.
228: %= $kv->(Time => scalar localtime(time))
229: </table>
230: </div>
231: <div class="tap">tap for more</div>
232: </div>
233: % if (@{app->log->history}) {
234: <div id="log" class="box infobox spaced">
235: <table>
236: % for my $msg (@{app->log->history}) {
237: % my ($time, $level, @lines) = @$msg;
238: % $time = localtime $time;
The default error page of Mojolicious cannot be displayed anymore because
it calls app->log->history. This new 'history' function needs to be
supported by MojoX::Log::Log4perl.
Thanks,
Olivier Duclos
DevOps - Capabilis