3
0
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:
Pragmatic Software 2020-01-30 22:33:27 -08:00
parent 1baff41267
commit b7e622a32e

View File

@ -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);
} }