3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 01:48:38 +02: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);
if (defined $cached) {
print "Using cached data for $uri\n";
return HTTP::Response->parse($cached);
}
my $res = $self->SUPER::request(@args);
if ($res->code eq HTTP::Status::RC_OK) {
print "caching new copy for $uri\n";
$self->{cache}->set($uri, $res->as_string);
}