Changeset 397 for branches/1.1dev/lib


Ignore:
Timestamp:
Feb 11, 2012 4:51:01 PM (12 years ago)
Author:
anonymous
Message:

Lessened the severity of logMsg for source file errors.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/lib/ImageThumb.inc.php

    r379 r397  
    209209        if (!file_exists($this->source_dir . '/' . $file_name)) {
    210210//             raiseMsg(sprintf(_("Image resizing failed: source image not found: <strong>%s</strong>"), $file_name), MSG_ERR, __FILE__, __LINE__);
    211             logMsg(sprintf('Source image not found: %s', $file_name), LOG_ALERT, __FILE__, __LINE__);
     211            logMsg(sprintf('Source image not found: %s', $file_name), LOG_WARNING, __FILE__, __LINE__);
    212212            return false;
    213213        }
     
    216216        if (!is_readable($this->source_dir . '/' . $file_name)) {
    217217//             raiseMsg(sprintf(_("Image resizing failed: source image not readable: <strong>%s</strong>"), $file_name), MSG_ERR, __FILE__, __LINE__);
    218             logMsg(sprintf('Source image not readable: %s', $file_name), LOG_ALERT, __FILE__, __LINE__);
     218            logMsg(sprintf('Source image not readable: %s', $file_name), LOG_WARNING, __FILE__, __LINE__);
    219219            return false;
    220220        }
     
    223223        if (filesize($this->source_dir . '/' . $file_name) < 1) {
    224224//             raiseMsg(sprintf(_("Image resizing failed: source image corrupt: <strong>%s</strong>"), $file_name), MSG_ERR, __FILE__, __LINE__);
    225             logMsg(sprintf('Source image is zero bytes: %s', $file_name), LOG_ALERT, __FILE__, __LINE__);
     225            logMsg(sprintf('Source image is zero bytes: %s', $file_name), LOG_WARNING, __FILE__, __LINE__);
    226226            return false;
    227227        }
Note: See TracChangeset for help on using the changeset viewer.