Changeset c9bdb46


Ignore:
Timestamp:
Dec 27, 2009, 3:07:17 PM (15 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.10, release-1.7, release-1.8, release-1.9
Children:
f3e44eb
Parents:
40c9dac
Message:
Be less noisy about warnings.

The user almost never cares about these, since they are usually just
transient errors from Twitter.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/BarnOwl/Module/Twitter/Handle.pm

    rf2adf6c rc9bdb46  
    170170
    171171    my $ratelimit = eval { $self->{twitter}->rate_limit_status };
    172     warn "$@\n" if $@;
     172    BarnOwl::debug($@) if $@;
    173173    unless(defined($ratelimit) && ref($ratelimit) eq 'HASH') {
    174174        # Twitter's probably just sucking, try again later.
     
    199199
    200200    my $timeline = eval { $self->{twitter}->home_timeline( { since_id => $self->{last_id} } ) };
    201     warn "$@\n" if $@;
     201    BarnOwl::debug($@) if $@;
    202202    unless(defined($timeline) && ref($timeline) eq 'ARRAY') {
    203203        $self->twitter_error();
     
    207207    if ($self->{cfg}->{show_mentions}) {
    208208        my $mentions = eval { $self->{twitter}->mentions( { since_id => $self->{last_id} } ) };
    209         warn "$@\n" if $@;
     209        BarnOwl::debug($@) if $@;
    210210        unless (defined($mentions) && ref($mentions) eq 'ARRAY') {
    211211            $self->twitter_error();
     
    252252
    253253    my $direct = eval { $self->{twitter}->direct_messages( { since_id => $self->{last_direct} } ) };
    254     warn "$@\n" if $@;
     254    BarnOwl::debug($@) if $@;
    255255    unless(defined($direct) && ref($direct) eq 'ARRAY') {
    256256        $self->twitter_error();
Note: See TracChangeset for help on using the changeset viewer.