[Jifty-commit] r4717 - in jifty/branches/jquery: .

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Mon Dec 17 00:38:15 EST 2007


Author: gugod
Date: Mon Dec 17 00:38:14 2007
New Revision: 4717

Modified:
   jifty/branches/jquery/   (props changed)
   jifty/branches/jquery/lib/Jifty/Plugin/LeakTracker.pm

Log:
 r8527 at GOP (orig r4709):  sartak | 2007-12-17 05:16:11 +0800
  r49124 at onn:  sartak | 2007-12-16 16:14:49 -0500
  LeakTracker: complain if Devel::Events::Generator::ObjectTracker isn't loaded in time (nothingmuch++)
 


Modified: jifty/branches/jquery/lib/Jifty/Plugin/LeakTracker.pm
==============================================================================
--- jifty/branches/jquery/lib/Jifty/Plugin/LeakTracker.pm	(original)
+++ jifty/branches/jquery/lib/Jifty/Plugin/LeakTracker.pm	Mon Dec 17 00:38:14 2007
@@ -4,6 +4,13 @@
 package Jifty::Plugin::LeakTracker;
 use base qw/Jifty::Plugin Class::Data::Inheritable/;
 use Data::Dumper;
+
+BEGIN {
+    if (!$INC{"Devel/Events/Generator/Objects.pm"}) {
+        Jifty->log->error("Devel::Events::Generator::Objects must be compiled very early so that it can override 'bless' in time. Usually this means you must run your Jifty application with: perl -MDevel::Events::Generator::Objects bin/jifty");
+    }
+}
+
 use Devel::Events::Handler::ObjectTracker;
 use Devel::Events::Generator::Objects;
 use Devel::Size 'total_size';


More information about the Jifty-commit mailing list