Changeset 420 for trunk/lib/ACL.inc.php


Ignore:
Timestamp:
Jul 3, 2013 4:19:34 PM (11 years ago)
Author:
anonymous
Message:

Updated the level for some log events.

File:
1 edited

Legend:

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

    r396 r420  
    117117            return $this->_params[$param];
    118118        } else {
    119             $app->logMsg(sprintf('Parameter is not set: %s', $param), LOG_DEBUG, __FILE__, __LINE__);
     119            $app->logMsg(sprintf('Parameter is not set: %s', $param), LOG_NOTICE, __FILE__, __LINE__);
    120120            return null;
    121121        }
     
    261261        $qid = $db->query("SELECT 1 FROM $tbl WHERE name = '" . $db->escapeString($name) . "'");
    262262        if (mysql_num_rows($qid) > 0) {
    263             $app->logMsg(sprintf('Cannot add %s node, already exists: %s', $type, $name), LOG_NOTICE, __FILE__, __LINE__);
     263            $app->logMsg(sprintf('Cannot add %s node, already exists: %s', $type, $name), LOG_INFO, __FILE__, __LINE__);
    264264            return false;
    265265        }
     
    346346        $qid = $db->query("SELECT lft, rgt FROM $tbl WHERE name = '" . $db->escapeString($name) . "'");
    347347        if (!list($lft, $rgt) = mysql_fetch_row($qid)) {
    348             $app->logMsg(sprintf('Cannot delete nonexistent %s name: %s', $type, $name), LOG_NOTICE, __FILE__, __LINE__);
     348            $app->logMsg(sprintf('Cannot delete nonexistent %s name: %s', $type, $name), LOG_WARNING, __FILE__, __LINE__);
    349349            return false;
    350350        }
     
    433433        $qid = $db->query("SELECT lft, rgt FROM $tbl WHERE name = '" . $db->escapeString($name) . "'");
    434434        if (!list($lft, $rgt) = mysql_fetch_row($qid)) {
    435             $app->logMsg(sprintf('Cannot move nonexistent %s name: %s', $type, $name), LOG_NOTICE, __FILE__, __LINE__);
     435            $app->logMsg(sprintf('Cannot move nonexistent %s name: %s', $type, $name), LOG_WARNING, __FILE__, __LINE__);
    436436            return false;
    437437        }
     
    618618        if (mb_substr_count($final_where, 'IS NOT NULL') == 3) {
    619619            // Null on all three tables will delete ALL entries including the root -> root -> root = deny.
    620             $app->logMsg(sprintf('Cannot allow deletion of ALL acl entries.', null), LOG_NOTICE, __FILE__, __LINE__);
     620            $app->logMsg('Cannot allow deletion of ALL acl entries.', LOG_WARNING, __FILE__, __LINE__);
    621621            return false;
    622622        }
Note: See TracChangeset for help on using the changeset viewer.