Skip to content
Browse files

Update documentation

  • Loading branch information...
1 parent 1111b8c commit 2ecaf7c402fe28ed57f45e48ef9ec711c684de15 @Krinkle Krinkle committed
Showing with 9 additions and 2 deletions.
  1. +5 −2 HISTORY.md
  2. +4 −0 inc/Database.php
View
7 HISTORY.md
@@ -35,10 +35,13 @@ Complete list of issues solved in the 1.0.0 milestone:
* (#115) Implement API, including various new actions (#105, #116).
* (#139) Create action for getting current status of the swarm.
* (#143) Refactor useragent storage and detection.
-* (#150) Show current TestSwarm version in InfoAction API and in `<meta>` on Pages.
+* (#150) Expose current TestSwarm version in InfoAction API and in `<meta>` on Pages.
* (#146) Add noindex rules.
* (#149) Create action "projects" for listing all accounts that submit jobs.
-* Basic caching for expansive operations in flat files in `./cache/`.
+* Implement basic caching for expansive operations in flat files in `./cache/`.
+* Implement "debug" mode for the API (format=debug)
+* Implement "debug" mode for Database queries. Disabled by default for performance and
+ security reasons, enable by setting [debug][db_log_queries] = 1 in testswarm.ini.
### User agents
View
4 inc/Database.php
@@ -181,6 +181,10 @@ protected function checkEnvironment() {
}
}
+ /**
+ * @return bool Whether or not log info was actually generated and saved,
+ * false by default for performance reasons, can be enabled in testswarm.ini.
+ */
protected function logQuery( $sql, $queryResponse, $microtimeStart ) {
static $doLog;
if ( $doLog === null ) {

0 comments on commit 2ecaf7c

Please sign in to comment.
Something went wrong with that request. Please try again.