Changeset 40 for trunk/lib


Ignore:
Timestamp:
Dec 17, 2005 7:43:47 AM (18 years ago)
Author:
scdev
Message:

${1}

Location:
trunk/lib
Files:
7 edited

Legend:

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

    r39 r40  
    312312        // Return user data if found.
    313313        if ($user_data = mysql_fetch_assoc($qid)) {
    314             App::logMsg(sprintf('Authentication successful for %s %s (%s)', $this->_auth, $user_data['user_id'], $username), LOG_DEBUG, __FILE__, __LINE__);
     314            App::logMsg(sprintf('Authentication successful for %s %s (%s)', $this->_auth, $user_data['user_id'], $username), LOG_INFO, __FILE__, __LINE__);
    315315            return $user_data;
    316316        } else {
  • trunk/lib/Email.inc.php

    r39 r40  
    2525    App::raiseMsg(sprintf(_("A confirmation email has been sent to %s."), $frm['email']), MSG_SUCCESS, __FILE__, __LINE__);
    2626} else {
    27     App::logMsg(sprintf('Error sending confirmation email to address %s', $frm['email']), LOG_DEBUG, __FILE__, __LINE__);
     27    App::logMsg(sprintf('Error sending confirmation email to address %s', $frm['email']), LOG_NOTICE, __FILE__, __LINE__);
    2828}
    2929-------------------------------------------------------------------------------------
     
    316316                return true;
    317317            } else {
    318                 App::logMsg(sprintf('Invalid email: %s', $email), LOG_DEBUG, __FILE__, __LINE__);
     318                App::logMsg(sprintf('Invalid email: %s', $email), LOG_INFO, __FILE__, __LINE__);
    319319                return false;
    320320            }
  • trunk/lib/FormValidator.inc.php

    r39 r40  
    419419        if (ip2long($domain) == '-1' && function_exists('checkdnsrr') && !checkdnsrr($domain . '.', 'MX') && gethostbyname($domain) == $domain) {
    420420            $this->addError($form_name, sprintf(_("<strong>%s</strong> is not a valid email domain name"), oTxt($domain)));
    421             App::logMsg(sprintf('The email address %s contains an invalid email domain name (%s).', getFormData($form_name), $domain), LOG_DEBUG, __FILE__, __LINE__);
     421            App::logMsg(sprintf('The email address %s contains an invalid email domain name (%s).', getFormData($form_name), $domain), LOG_INFO, __FILE__, __LINE__);
    422422            return false;
    423423        }
  • trunk/lib/PageNumbers.inc.php

    r39 r40  
    138138    {
    139139        if (!$this->set_per_page_initialized) {
    140             App::logMsg(sprintf('set_per_page not initialized'), LOG_DEBUG, __FILE__, __LINE__);
     140            App::logMsg(sprintf('set_per_page not initialized'), LOG_ERR, __FILE__, __LINE__);
    141141        }
    142142        if (!$this->set_page_number_initialized) {
    143             App::logMsg(sprintf('set_page_number not initialized'), LOG_DEBUG, __FILE__, __LINE__);
     143            App::logMsg(sprintf('set_page_number not initialized'), LOG_ERR, __FILE__, __LINE__);
    144144        }
    145145        if (!$this->set_total_items_initialized) {
    146             App::logMsg(sprintf('set_total_items not initialized'), LOG_DEBUG, __FILE__, __LINE__);
     146            App::logMsg(sprintf('set_total_items not initialized'), LOG_ERR, __FILE__, __LINE__);
    147147        }
    148148   
  • trunk/lib/SpellCheck.inc.php

    r39 r40  
    189189                return true;           
    190190            } else {
    191                 App::logMsg(sprintf('Failed adding "%s" to personal wordlist: %s', $word, $this->getParam('personal_wordlist')), LOG_ERR, __FILE__, __LINE__);
     191                App::logMsg(sprintf('Failed adding "%s" to personal wordlist: %s', $word, $this->getParam('personal_wordlist')), LOG_WARNING, __FILE__, __LINE__);
    192192                return false;
    193193            }
     
    212212                return true;
    213213            } else {
    214                 App::logMsg(sprintf('Failed saving personal wordlist: %s', $this->getParam('personal_wordlist')), LOG_DEBUG, __FILE__, __LINE__);
     214                App::logMsg(sprintf('Failed saving personal wordlist: %s', $this->getParam('personal_wordlist')), LOG_ERR, __FILE__, __LINE__);
    215215                return false;
    216216            }
  • trunk/lib/TemplateGlue.inc.php

    r39 r40  
    7272        return $enum[1];
    7373    } else {
    74         App::logMsg(sprintf('No set or enum fields found.', null), LOG_DEBUG, __FILE__, __LINE__);
     74        App::logMsg(sprintf('No set or enum fields found.', null), LOG_ERR, __FILE__, __LINE__);
    7575        return false;
    7676    }
  • trunk/lib/Upload.inc.php

    r39 r40  
    443443            if (move_uploaded_file($files['tmp_name'][$i], $file_path_name)) {
    444444                chmod($file_path_name, $this->getParam('dest_file_perms'));
     445                App::logMsg(sprintf('File uploaded: %s', $file_path_name), LOG_INFO, __FILE__, __LINE__);
    445446                $this->raiseMsg(sprintf(_("The file <strong>%s</strong> uploaded successfully."), $file_name), MSG_SUCCESS, __FILE__, __LINE__);
    446447                if (!isset($custom_file_name) && $files['name'][$i] != $file_name) {
     
    487488            return false;
    488489        } else if (unlink($file_path_name)) {
    489             App::logMsg(sprintf('Deleted file: %s', $file_path_name), LOG_DEBUG, __FILE__, __LINE__);
     490            App::logMsg(sprintf('Deleted file: %s', $file_path_name), LOG_INFO, __FILE__, __LINE__);
    490491        } else {
    491492            $this->raiseMsg(sprintf(_("The file <strong>%s</strong> could not be deleted."), $file_name), MSG_ERR, __FILE__, __LINE__);
Note: See TracChangeset for help on using the changeset viewer.