From: Alan Knowles Date: Thu, 24 Mar 2016 04:16:22 +0000 (+0800) Subject: Report/SendEventErrors.php X-Git-Url: http://git.roojs.org/?p=Pman.Admin;a=commitdiff_plain;h=1f9b6e6f79ed5c86b50f1466397eca818f6cb3ff Report/SendEventErrors.php --- diff --git a/Report/SendEventErrors.php b/Report/SendEventErrors.php index 2c3b4a0..e765047 100644 --- a/Report/SendEventErrors.php +++ b/Report/SendEventErrors.php @@ -63,7 +63,14 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo 'default' => '', 'min' => 1, 'max' => 1, - ) + ), + 'debug' => array( + 'desc' => 'Turn on database debugging', + 'short' => 'd', + 'default' => '', + 'min' => 1, + 'max' => 1, + ), ); function getAuth() @@ -81,7 +88,10 @@ class Pman_Admin_Report_SendEventErrors extends Pman_Roo { $this->opts = $opts; + if (!empty($this->opts['debug'])) { + DB_DataObject::debugLevel(1); + } if(!empty($this->opts['list'])){ $this->listTypes(); }