diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-08-11 13:03:30 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-08-11 13:03:30 -0400 |
commit | 88e389ef1ec5441d7941a15e3d075f011128d272 (patch) | |
tree | a123a85ceab49a013a9e86fca4c81b4728347fb2 /IkiWiki | |
parent | 49d56c3957668e54b4eb475f195ab019adffae40 (diff) | |
download | ikiwiki-88e389ef1ec5441d7941a15e3d075f011128d272.tar ikiwiki-88e389ef1ec5441d7941a15e3d075f011128d272.tar.gz |
error if ping fails, rather than printing debug
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/Plugin/inline.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/IkiWiki/Plugin/inline.pm b/IkiWiki/Plugin/inline.pm index 1a6c7cfcd..d2e583289 100644 --- a/IkiWiki/Plugin/inline.pm +++ b/IkiWiki/Plugin/inline.pm @@ -579,15 +579,15 @@ sub pingurl (@) { #{{{ $title, $url); my $res = $client->send_request($req); if (! ref $res) { - debug("Did not receive response to ping"); + error("Did not receive response to ping"); } my $r=$res->value; if (! exists $r->{flerror} || $r->{flerror}) { - debug("Ping rejected: ".(exists $r->{message} ? $r->{message} : "[unknown reason]")); + error("Ping rejected: ".(exists $r->{message} ? $r->{message} : "[unknown reason]")); } }; if ($@) { - debug "Ping failed: $@"; + error "Ping failed: $@"; } } } |