Skip to content

Commit

Permalink
Logging: add categories in com_finder
Browse files Browse the repository at this point in the history
  • Loading branch information
codeling committed Nov 23, 2014
1 parent ff5257b commit 9428676
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function start()
}

// Log the start
JLog::add('Starting the indexer', JLog::INFO);
JLog::add('Starting the indexer', JLog::INFO, 'com_finder');

// We don't want this form to be cached.
header('Pragma: no-cache');
Expand Down Expand Up @@ -110,7 +110,7 @@ public function batch()
}

// Log the start
JLog::add('Starting the indexer batch process', JLog::INFO);
JLog::add('Starting the indexer batch process', JLog::INFO, 'com_finder');

// We don't want this form to be cached.
header('Pragma: no-cache');
Expand Down Expand Up @@ -280,7 +280,7 @@ public static function sendResponse($data = null)
if ($data instanceof Exception)
{
$app = JFactory::getApplication();
JLog::add($data->getMessage(), JLog::ERROR);
JLog::add($data->getMessage(), JLog::ERROR, 'com_finder');
$app->setHeader('status', $data->getCode());
$app->sendHeaders();
}
Expand Down Expand Up @@ -336,7 +336,7 @@ public function __construct($state)
if ($state instanceof Exception)
{
// Log the error
JLog::add($state->getMessage(), JLog::ERROR);
JLog::add($state->getMessage(), JLog::ERROR, 'com_finder');

// Prepare the error response.
$this->error = true;
Expand Down

0 comments on commit 9428676

Please sign in to comment.