Ignore:
Timestamp:
May 6, 2008 7:49:25 PM (16 years ago)
Author:
quinn
Message:

Truncating output from getDump when used for logging.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/ImageThumb.inc.php

    r320 r331  
    482482        } else {
    483483            // An error occurred.
    484             $app->logMsg(sprintf('Image %s failed resizing with return value: %s%s', $spec['dest_dir'] . '/' . basename($dest_file), $return_val, empty($output) ? '' : ' (' . getDump($output) . ')'), LOG_ERR, __FILE__, __LINE__);
     484            $app->logMsg(sprintf('Image %s failed resizing with return value: %s%s', $spec['dest_dir'] . '/' . basename($dest_file), $return_val, empty($output) ? '' : ' (' . truncate(getDump($output, true), 128, 'end') . ')'), LOG_ERR, __FILE__, __LINE__);
    485485        }
    486486
Note: See TracChangeset for help on using the changeset viewer.