git://git.camperquake.de
/
videosite.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eeddf24
)
Base: Add debugging to simple_get
author
Ralf Ertzinger
<ralf@skytale.net>
Sun, 8 Dec 2013 16:31:08 +0000
(17:31 +0100)
committer
Ralf Ertzinger
<ralf@skytale.net>
Sun, 8 Dec 2013 16:31:08 +0000
(17:31 +0100)
videosite/Base.pm
patch
|
blob
|
history
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;
+ $self->debug("Getting %s", $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;
}