diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/util.inc.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/inc/util.inc.php b/inc/util.inc.php index 69eaf941..c0617310 100644 --- a/inc/util.inc.php +++ b/inc/util.inc.php @@ -179,6 +179,13 @@ SADFACE; $location .= '&' . implode('&', self::$redirectParams); } } + if (CONFIG_DEBUG) { + global $global_start; + $duration = microtime(true) - $global_start; + error_log('Redirect: ' . round($duration, 3) . 's, ' + . Database::getQueryCount() . ' queries, ' + . round(Database::getQueryTime(), 3) . 's query time total'); + } Header('Location: ' . $location); exit(0); } |