[Jifty-commit] r848 - jifty/trunk/lib/Jifty/Web

jifty-commit at lists.jifty.org jifty-commit at lists.jifty.org
Wed Apr 12 21:07:21 EDT 2006


Author: autrijus
Date: Wed Apr 12 21:07:20 2006
New Revision: 848

Modified:
   jifty/trunk/lib/Jifty/Web/Form.pm

Log:
* Jifty::Web::Form - Change the Jifty->logger->warning API call 
  to a regular "warn" as $SIG{__WARN__} is already populated by
  Jifty::Logger nowadays; this also makes it not die when a logger
  is not in place at all.

Modified: jifty/trunk/lib/Jifty/Web/Form.pm
==============================================================================
--- jifty/trunk/lib/Jifty/Web/Form.pm	(original)
+++ jifty/trunk/lib/Jifty/Web/Form.pm	Wed Apr 12 21:07:20 2006
@@ -149,7 +149,7 @@
     my %args = (@_);
 
     if ($self->is_open) {
-        Jifty->logger->warning("Trying to open a form when we already have one open");
+        warn("Trying to open a form when we already have one open");
     }
 
     for (keys %args) {
@@ -196,7 +196,7 @@
     my $self = shift;
 
     unless ($self->is_open) {
-        Jifty->logger->warning("Trying to close a form when we don't have one open");
+        warn("Trying to close a form when we don't have one open");
     }
     Jifty->web->out( qq!<div class="hidden">\n! );
 


More information about the Jifty-commit mailing list