mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 20:42:38 +01:00
Utils: remove debug statements
This commit is contained in:
parent
1baff41267
commit
b7e622a32e
@ -46,14 +46,12 @@ sub request {
|
|||||||
my $cached = $self->{cache}->get($uri);
|
my $cached = $self->{cache}->get($uri);
|
||||||
|
|
||||||
if (defined $cached) {
|
if (defined $cached) {
|
||||||
print "Using cached data for $uri\n";
|
|
||||||
return HTTP::Response->parse($cached);
|
return HTTP::Response->parse($cached);
|
||||||
}
|
}
|
||||||
|
|
||||||
my $res = $self->SUPER::request(@args);
|
my $res = $self->SUPER::request(@args);
|
||||||
|
|
||||||
if ($res->code eq HTTP::Status::RC_OK) {
|
if ($res->code eq HTTP::Status::RC_OK) {
|
||||||
print "caching new copy for $uri\n";
|
|
||||||
$self->{cache}->set($uri, $res->as_string);
|
$self->{cache}->set($uri, $res->as_string);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user