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


Ignore:
Timestamp:
Jul 13, 2023 3:13:57 AM (10 months ago)
Author:
anonymous
Message:

minor changes

File:
1 edited

Legend:

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

    r790 r796  
    446446                    }
    447447                } else {
    448                     $this->logMsg(sprintf('DB auth file not found: %s', $this->getParam('db_auth_file')), LOG_ERR, __FILE__, __LINE__);
     448                    $missing_db_params = [];
     449                    foreach (['db_auth_file', 'db_server', 'db_name', 'db_user', 'db_pass'] as $required_db_param) {
     450                        if (!$this->getParam($required_db_param)) {
     451                            $missing_db_params[] = $required_db_param;
     452                        }
     453                    }
     454                    $this->logMsg(sprintf('DB credentials or %s not found. Missing parameters: %s', $this->getParam('db_auth_file'), join(', ', $missing_db_params)), LOG_ERR, __FILE__, __LINE__);
    449455                }
    450456            }
Note: See TracChangeset for help on using the changeset viewer.