Changeset 768 for trunk/lib/App.inc.php


Ignore:
Timestamp:
Jun 9, 2022 7:24:04 PM (2 years ago)
Author:
anonymous
Message:

Minor improvements

File:
1 edited

Legend:

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

    r767 r768  
    430430            // DB credentials for CLI scripts stored in a JSON file with read rights given only to the user who will be executing the scripts: -r--------
    431431            // But not if all DB credentials have been defined already by other means.
    432             if ($this->cli && '' != $this->getParam('db_auth_file') && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) {
     432            if ('' != $this->getParam('db_auth_file') && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) {
    433433                if (false !== ($db_auth_file = stream_resolve_include_path($this->getParam('db_auth_file')))) {
    434434                    if (is_readable($db_auth_file)) {
     
    664664            if ($num_queries > 0 && true === $this->getParam('enable_db_pdo')) {
    665665                // If the app wants to use PDO, warn if any legacy db queries are made.
    666                 $this->logMsg(sprintf('%s queries using legacy DB functions', $num_queries), LOG_WARNING, __FILE__, __LINE__);
     666                $this->logMsg(sprintf('%s queries using legacy DB functions', $num_queries), LOG_DEBUG, __FILE__, __LINE__);
    667667            }
    668668            $this->db->close();
Note: See TracChangeset for help on using the changeset viewer.