Skip to content

Commit a4054b4

Browse files
authored
Merge pull request #181 from jvasseur/remove-server-name-default
Remove server_name default value
2 parents 353f9d3 + 74833d9 commit a4054b4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/DependencyInjection/Configuration.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
namespace Sentry\SentryBundle\DependencyInjection;
44

5-
use Raven_Compat;
65
use Sentry\SentryBundle\EventListener\ExceptionListener;
76
use Sentry\SentryBundle\EventListener\SentryExceptionListenerInterface;
87
use Sentry\SentryBundle\SentrySymfonyClient;
@@ -58,7 +57,7 @@ public function getConfigTreeBuilder()
5857
->scalarNode('public_key')->defaultNull()->end()
5958
->scalarNode('project')->defaultValue(1)->end()
6059
->booleanNode('auto_log_stacks')->defaultFalse()->end()
61-
->scalarNode('name')->defaultValue(Raven_Compat::gethostname())->end()
60+
->scalarNode('name')->defaultNull()->end()
6261
->scalarNode('site')->defaultNull()->end()
6362
->arrayNode('tags')
6463
->prototype('scalar')->end()

test/DependencyInjection/SentryExtensionTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public function test_that_configuration_uses_the_right_default_values()
4545
$this->assertNull($options['public_key']);
4646
$this->assertSame(1, $options['project']);
4747
$this->assertFalse($options['auto_log_stacks']);
48-
$this->assertSame(\Raven_Compat::gethostname(), $options['name']);
48+
$this->assertNull($options['name']);
4949
$this->assertNull($options['site']);
5050
$this->assertSame([], $options['tags']);
5151
$this->assertNull($options['release']);

0 commit comments

Comments
 (0)