Changeset 180 for trunk/lib/App.inc.php
- Timestamp:
- Jun 23, 2006 10:00:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r177 r180 530 530 'type' => $this->logPriorityToString($priority), 531 531 'file:line' => "$file : $line", 532 'url' => (isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : ''),532 'url' => substr(isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : '', 0, 128), 533 533 'message' => $message 534 534 ); … … 537 537 if ($this->getParam('log_file_priority') && $priority <= $this->getParam('log_file_priority')) { 538 538 $event_str = '[' . join('] [', $event) . ']'; 539 error_log( $event_str. "\n", 3, $this->getParam('log_directory') . '/' . $this->getParam('log_filename'));539 error_log(substr($event_str, 0, 1024) . "\n", 3, $this->getParam('log_directory') . '/' . $this->getParam('log_filename')); 540 540 } 541 541 … … 554 554 if ($this->getParam('log_sms_priority') && $priority <= $this->getParam('log_sms_priority')) { 555 555 $subject = sprintf('[%s %s]', getenv('HTTP_HOST'), $priority); 556 $sms_msg = sprintf('%s [%s:%s]', $event['message'], basename($file), $line);556 $sms_msg = sprintf('%s [%s:%s]', substr($event['message'], 0, 64), basename($file), $line); 557 557 $headers = "From: codebase@strangecode.com"; 558 558 mail($this->getParam('log_to_sms_address'), $subject, $sms_msg, $headers, '-f codebase@strangecode.com');
Note: See TracChangeset
for help on using the changeset viewer.