File tree Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Expand file tree Collapse file tree 2 files changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,6 @@ var Client = function Client(dsn, options) {
25
25
this . raw_dsn = dsn ;
26
26
this . dsn = utils . parseDSN ( dsn ) ;
27
27
this . name = options . name || process . env . SENTRY_NAME || require ( 'os' ) . hostname ( ) ;
28
- this . site = options . site || process . env . SENTRY_SITE ;
29
28
this . root = options . root || process . cwd ( ) ;
30
29
this . transport = options . transport || transports [ this . dsn . protocol ] ;
31
30
@@ -60,7 +59,6 @@ _.process = function process(kwargs) {
60
59
kwargs [ 'event_id' ] = uuid ( ) . replace ( / - / g, '' ) ;
61
60
kwargs [ 'timestamp' ] = new Date ( ) . toISOString ( ) . split ( '.' ) [ 0 ] ;
62
61
kwargs [ 'project' ] = this . dsn . project_id ;
63
- kwargs [ 'site' ] = kwargs [ 'site' ] || this . site ;
64
62
kwargs [ 'platform' ] = 'node' ;
65
63
66
64
var ident = { 'id' : kwargs [ 'event_id' ] } ;
Original file line number Diff line number Diff line change @@ -44,10 +44,9 @@ describe('raven.Client', function(){
44
44
project_id : 269 ,
45
45
port : 443
46
46
} ;
47
- var client = new raven . Client ( dsn , { name : 'YAY!' , site : 'Googlez' } ) ;
47
+ var client = new raven . Client ( dsn , { name : 'YAY!' } ) ;
48
48
client . dsn . should . eql ( expected ) ;
49
49
client . name . should . equal ( 'YAY!' ) ;
50
- client . site . should . equal ( 'Googlez' ) ;
51
50
} ) ;
52
51
53
52
it ( 'should pull SENTRY_DSN from environment' , function ( ) {
@@ -101,7 +100,6 @@ describe('raven.Client', function(){
101
100
it ( 'should pull SENTRY_SITE from environment' , function ( ) {
102
101
process . env . SENTRY_SITE = 'Googlez' ;
103
102
var client = new raven . Client ( dsn ) ;
104
- client . site . should . eql ( 'Googlez' ) ;
105
103
delete process . env . SENTRY_SITE ;
106
104
} ) ;
107
105
You can’t perform that action at this time.
0 commit comments