src/snac/server/database/SQL.php
/**
     * Wrap logging
     *
     * When logging is disabled, we don't want to call the logger because we don't want to generate errors. We
     * also don't want logs to just magically start up. Doing logging should be very intentional, especially
     * in a low level class like SQL. Call enableLogging() before calling logDebug().
     *
     * @param string $msg The logging messages
     *
     * @param string[] $debugArray An associative list of keys and values to send to the logger.
     */
Wrap logging
When logging is disabled, we don't want to call the logger because we don't want to generate errors. We
also don't want logs to just magically start up. Doing logging should be very intentional, especially
in a low level class like SQL. Call enableLogging() before calling logDebug().

@param string $msg The logging messages

@param string[] $debugArray An associative list of keys and values to send to the logger.
Wrap logging When logging is disabled we don ' t want to call the logger because we don ' t want to generate errors . We also don ' t want logs to just magically start up . Doing logging should be very intentional especially in a low level class like SQL . Call enableLogging () before calling logDebug () . @param string $msg The logging messages @param string [] $debugArray An associative list of keys and values to send to the logger .
private function logDebug($msg, $debugArray)
    {
        if ($this->logger)
        {
            $this->logger->addDebug($msg, $debugArray);
        }
    }
private function logDebug ( $ msg , $ debugArray ) { if ( $ this -> logger ) { $ this -> logger -> addDebug ( $ msg , $ debugArray ) ; } }
Wrap logging
 When logging is disabled, we don't want to call the logger because we don't want to generate errors.
Wrap logging When logging is disabled we don ' t want to call the logger because we don ' t want to generate errors .