Skip to content

Commit 646ac8d

Browse files
committed
Remove deprecated site param
1 parent d0ea87d commit 646ac8d

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/client.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ var Client = function Client(dsn, options) {
2525
this.raw_dsn = dsn;
2626
this.dsn = utils.parseDSN(dsn);
2727
this.name = options.name || process.env.SENTRY_NAME || require('os').hostname();
28-
this.site = options.site || process.env.SENTRY_SITE;
2928
this.root = options.root || process.cwd();
3029
this.transport = options.transport || transports[this.dsn.protocol];
3130

@@ -60,7 +59,6 @@ _.process = function process(kwargs) {
6059
kwargs['event_id'] = uuid().replace(/-/g, '');
6160
kwargs['timestamp'] = new Date().toISOString().split('.')[0];
6261
kwargs['project'] = this.dsn.project_id;
63-
kwargs['site'] = kwargs['site'] || this.site;
6462
kwargs['platform'] = 'node';
6563

6664
var ident = {'id': kwargs['event_id']};

test/raven.client.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ describe('raven.Client', function(){
4444
project_id: 269,
4545
port: 443
4646
};
47-
var client = new raven.Client(dsn, {name: 'YAY!', site:'Googlez'});
47+
var client = new raven.Client(dsn, {name: 'YAY!'});
4848
client.dsn.should.eql(expected);
4949
client.name.should.equal('YAY!');
50-
client.site.should.equal('Googlez');
5150
});
5251

5352
it('should pull SENTRY_DSN from environment', function(){
@@ -101,7 +100,6 @@ describe('raven.Client', function(){
101100
it('should pull SENTRY_SITE from environment', function(){
102101
process.env.SENTRY_SITE='Googlez';
103102
var client = new raven.Client(dsn);
104-
client.site.should.eql('Googlez');
105103
delete process.env.SENTRY_SITE;
106104
});
107105

0 commit comments

Comments
 (0)