Skip to content

Commit

Permalink
Fixes and improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kukulich authored and Vrtak-CZ committed Oct 5, 2013
1 parent 5e19132 commit 9b1f800
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ newrelic:

# optional options with default values
rum:
autoEnable: Yes
autoEnabled: Yes
transactionTracer:
enabled: Yes
detail: 1
Expand All @@ -44,7 +44,7 @@ newrelic:
recordDatabaseErrors: Yes
parameters:
capture: No
ignored: ''
ignored: []
customParameters:
paramName: paramValue
```
Expand Down
8 changes: 4 additions & 4 deletions src/VrtakCZ/NewRelic/Extension.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Extension extends \Nette\Config\CompilerExtension
\Nette\Diagnostics\Logger::CRITICAL,
),
'rum' => array(
'autoEnable' => TRUE,
'autoEnabled' => TRUE,
),
'transactionTracer' => array(
'enabled' => TRUE,
Expand All @@ -37,7 +37,7 @@ class Extension extends \Nette\Config\CompilerExtension
),
'parameters' => array(
'capture' => FALSE,
'ignored' => '',
'ignored' => array(),
),
);

Expand Down Expand Up @@ -101,7 +101,7 @@ public function afterCompile(ClassType $class)
$initialize->addBody('\Nette\Diagnostics\Debugger::$logger = $newRelicLogger;');

// Options
if ($config['rum']['autoEnable']) {
if (!$config['rum']['autoEnabled']) {
$initialize->addBody('newrelic_disable_autorum();');
}
$initialize->addBody("ini_set('newrelic.transaction_tracer.enabled', ?);", array(
Expand Down Expand Up @@ -135,7 +135,7 @@ public function afterCompile(ClassType $class)
$config['parameters']['capture'],
));
$initialize->addBody("ini_set('newrelic.ignored_params', ?);", array(
(string) $config['parameters']['ignored'],
implode(',', $config['parameters']['ignored']),
));
}

Expand Down

0 comments on commit 9b1f800

Please sign in to comment.