- Timestamp:
- Feb 7, 2009 6:53:51 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r341 r342 106 106 'log_filename' => 'app_log', 107 107 108 // Don't email or sms duplicate messages that happen more often than this value in sceonds108 // Don't email or sms duplicate messages that happen more often than this value in sceonds. 109 109 'log_multiple_timeout' => 60, 110 110 … … 119 119 // LOG_DEBUG debug-level message 120 120 'log_file_priority' => LOG_INFO, 121 'log_email_priority' => LOG_INFO,121 'log_email_priority' => false, 122 122 'log_sms_priority' => false, 123 123 'log_screen_priority' => false, 124 124 125 125 // Email address to receive log event emails. 126 'log_to_email_address' => 'dan@strangecode.com',126 'log_to_email_address' => null, 127 127 128 128 // SMS Email address to receive log event SMS messages. … … 562 562 if (is_file($temp_file)) { 563 563 $msg_last_sent = filectime($temp_file); 564 // Has this message been sent more recently than the timeout?564 // Has this message been sent more recently than the timeout? 565 565 if ((time() - $msg_last_sent) < $this->getParam('log_multiple_timeout')) { 566 // this message was alreay sent recently566 // This message was alreay sent recently 567 567 $send_notifications = false; 568 568 } else { 569 // timeout has expired go ahead and send notifications again569 // Timeout has expired go ahead and send notifications again 570 570 unlink($temp_file); 571 571 }
Note: See TracChangeset
for help on using the changeset viewer.