diff options
author | Brion Vibber <brion@pobox.com> | 2010-01-21 11:07:52 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-01-21 11:07:52 -0800 |
commit | 8dafe09ab25335c26e33548e988828a72e984239 (patch) | |
tree | 3906e9896425f3bf7b95bd12215fc2cfcb31a243 /lib | |
parent | 1d64ba6602f7ccd4c049167355445ca3600c28e6 (diff) |
Option to log slow db queries or all db queries
$config['db']['log_queries'] = true; // all
$config['db']['log_slow_queries'] = 10; // queries taking > 10 seconds
Diffstat (limited to 'lib')
-rw-r--r-- | lib/default.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/default.php b/lib/default.php index 5b2ae6c7c..fc6b4ab79 100644 --- a/lib/default.php +++ b/lib/default.php @@ -67,7 +67,9 @@ $default = 'db_driver' => 'DB', # XXX: JanRain libs only work with DB 'quote_identifiers' => false, 'type' => 'mysql', - 'schemacheck' => 'runtime'), // 'runtime' or 'script' + 'schemacheck' => 'runtime', // 'runtime' or 'script' + 'log_queries' => false, // true to log all DB queries + 'log_slow_queries' => 0), // if set, log queries taking over N seconds 'syslog' => array('appname' => 'statusnet', # for syslog 'priority' => 'debug', # XXX: currently ignored |