Show
Ignore:
Timestamp:
11/24/08 23:28:48 (12 months ago)
Author:
henrylyne
Message:

Carp output is not that useful, switching to warn.
Issue warn after references after handled, so value for key is readable in warn.
Remove unnecessary parenthesis.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/api/perl/lib/Cache/Memcached.pm

    r796 r797  
    1919use Errno qw( EINPROGRESS EWOULDBLOCK EISCONN ); 
    2020use Cache::Memcached::GetParser; 
    21 use Carp qw(carp croak); 
    2221use fields qw{ 
    2322    debug no_rehash stats compress_threshold compress_enable stat_callback 
     
    443442    my Cache::Memcached $self = shift; 
    444443    my ($key, $val, $exptime) = @_; 
    445     carp "value for memkey:$key is not defined" unless (defined $val); 
    446444    return 0 if ! $self->{'active'} || $self->{'readonly'}; 
    447445    my $stime = Time::HiRes::time() if $self->{'stat_callback'}; 
     
    460458        $flags |= F_STORABLE; 
    461459    } 
     460    warn "value for memkey:$key is not defined" unless defined $val; 
    462461 
    463462    my $len = length($val);