]> git.mxchange.org Git - friendica.git/blobdiff - src/Database/DBA.php
Improve Logger calls
[friendica.git] / src / Database / DBA.php
index 326fb0771d99e8e5b1a91a8fa164f5569c0724a8..832f0a444f994684354267123a0f9ff6c8c39fed 100644 (file)
@@ -425,7 +425,7 @@ class DBA
 
                if ((substr_count($sql, '?') != count($args)) && (count($args) > 0)) {
                        // Question: Should we continue or stop the query here?
-                       Logger::error('Parameter mismatch. Query "'.$sql.'" - Parameters '.print_r($args, true));
+                       Logger::warning('Query parameters mismatch.', ['query' => $sql, 'args' => $args, 'callstack' => System::callstack()]);
                }
 
                $sql = self::cleanQuery($sql);