]> git.mxchange.org Git - friendica.git/blobdiff - include/dba.php
Merge remote-tracking branch 'upstream/develop' into 1701-performance
[friendica.git] / include / dba.php
index 4b76f55ab0a0f6503c319c274c3a6bda52faafba..8e2d18db600cd5f39c3ffdb295082db85270b1f1 100644 (file)
@@ -138,6 +138,11 @@ class dba {
                return $return;
        }
 
+       /**
+        * @brief Analyze a database query and log this if some conditions are met.
+        *
+        * @param string $query The database query that will be analyzed
+        */
        public function log_index($query) {
                $a = get_app();
 
@@ -181,7 +186,7 @@ class dba {
                        if ($log) {
                                $backtrace = debug_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
                                @file_put_contents($a->config["system"]["db_log_index"], datetime_convert()."\t".
-                                               $row['key']."\t".$row['rows']."\t".
+                                               $row['key']."\t".$row['rows']."\t".$row['Extra']."\t".
                                                basename($backtrace[1]["file"])."\t".
                                                $backtrace[1]["line"]."\t".$backtrace[2]["function"]."\t".
                                                substr($query, 0, 2000)."\n", FILE_APPEND);