From 25778ef80fedaefaf16cea3a75dc554cfe7e2376 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Wed, 17 Jan 2007 19:05:11 +0000 Subject: it::error: fewer alerts, better performance --- url.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'url.class') diff --git a/url.class b/url.class index ebe42a5..c1be258 100644 --- a/url.class +++ b/url.class @@ -363,7 +363,7 @@ function get_cache($p = array()) if (($parts = parse_url($p['url'])) === false) it::error('malformed url ' . $p['url']); if ($p['safety'] == 1) - it::error(array('title'=>"get_cache: download failures on $path", 'ok_key'=>md5($parts['host']), 'ok_delay'=>$p['maxage'], 'ok'=>$result ? 1 : 0)); # send err only if multi failure + it::error(array('title'=>"get_cache: download failures on {$p['url']}", 'ok_key'=>"ok_".$parts['host'], 'ok'=>$result ? 1 : 0)); # send err only if multi failure @unlink("$path.lock"); } -- cgit v1.2.3