--- /var/www/drupal6_review/sites/all/modules/imagecache/imagecache.module      2009-04-27 14:09:58.000000000 +0200
+++ imagecache.module   2009-04-28 11:11:42.000000000 +0200
@@ -397,12 +397,14 @@ function _imagecache_cache($presetname,
   // check if the path to the file exists
   if (!is_file($src) && !is_file($src = file_create_path($src))) {
     // Send a 404 if we don't know of a preset.
+    watchdog('imagecache', '404: Unable to find %image ', array('%image' => $src), WATCHDOG_ERROR);
     header("HTTP/1.0 404 Not Found");
     exit;
   };

   // bail if the requested file isn't an image you can't just summon .php files etc...
   if (!getimagesize($src)) {
+    watchdog('imagecache', '403: File is not an image %image ', array('%image' => $src), WATCHDOG_ERROR);
     header('HTTP/1.0 403 Forbidden');
     exit;
   }

