git://git.camperquake.de
/
videosite.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Base: Add debugging to simple_get
[videosite.git]
/
videosite
/
Base.pm
diff --git
a/videosite/Base.pm
b/videosite/Base.pm
index
437ef98
..
6f686f5
100644
(file)
--- a/
videosite/Base.pm
+++ b/
videosite/Base.pm
@@
-210,7
+210,10
@@
sub simple_get {
my $ua = shift || $self->ua();
my $r;
my $ua = shift || $self->ua();
my $r;
+ $self->debug("Getting %s", $url);
$r = $ua->get($url);
$r = $ua->get($url);
+ $self->debug("Return code: %s", $r->status_line);
+ $self->debug("Content length: %d", length($r->decoded_content)) if $r->is_success();
return $r->decoded_content() if $r->is_success();
return undef;
}
return $r->decoded_content() if $r->is_success();
return undef;
}