Changeset 342 for trunk/lib


Ignore:
Timestamp:
Feb 7, 2009 6:53:51 PM (15 years ago)
Author:
dan
Message:

Cleaned up some things left over from debugging and standardised comments.

File:
1 edited

Legend:

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

    r341 r342  
    106106        'log_filename' => 'app_log',
    107107
    108         //Don't email or sms duplicate messages that happen more often than this value in sceonds
     108        // Don't email or sms duplicate messages that happen more often than this value in sceonds.
    109109        'log_multiple_timeout' => 60,
    110110
     
    119119        // LOG_DEBUG     debug-level message
    120120        'log_file_priority' => LOG_INFO,
    121         'log_email_priority' => LOG_INFO,
     121        'log_email_priority' => false,
    122122        'log_sms_priority' => false,
    123123        'log_screen_priority' => false,
    124124
    125125        // Email address to receive log event emails.
    126         'log_to_email_address' => 'dan@strangecode.com',
     126        'log_to_email_address' => null,
    127127
    128128        // SMS Email address to receive log event SMS messages.
     
    562562        if (is_file($temp_file)) {
    563563            $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?
    565565            if ((time() - $msg_last_sent) < $this->getParam('log_multiple_timeout')) {
    566                 //this message was alreay sent recently
     566                // This message was alreay sent recently
    567567                $send_notifications = false;
    568568            } else {
    569                 //timeout has expired go ahead and send notifications again
     569                // Timeout has expired go ahead and send notifications again
    570570                unlink($temp_file);
    571571            }
Note: See TracChangeset for help on using the changeset viewer.