Skip to content

Commit

Permalink
Removing extra debugging, patching log error for #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Aaron Were committed Aug 2, 2017
1 parent 2297010 commit f16ff16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class.RewriterPlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class RewriterPlugin extends Plugin
*
* @var boolean
*/
const DUMPWHOLETHING = TRUE;
const DUMPWHOLETHING = FALSE;

/**
* Hook the bootstrap process, wait for tickets to be created.
Expand Down Expand Up @@ -552,7 +552,7 @@ private function log($message)
global $ost;

// hmm.. might not be available if bootstrapping isn't finished.
if ((self::DEBUG || $this->getConfig()->get('log')) && $message) {
if ($ost instanceof osticket && (self::DEBUG || $this->getConfig()->get('log')) && $message) {
$ost->logDebug("RewritePlugin", $message);
}
if (self::DEBUG)
Expand Down

0 comments on commit f16ff16

Please sign in to comment.