This repository was archived by the owner on Sep 12, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Expand file tree Collapse file tree 3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
2
3
3
4
- def boot (ini , stage ):
5
- if ini :
4
+ def boot (config_file , license ):
5
+ if ( config_file or license ) :
6
6
try :
7
7
import newrelic .agent
8
- newrelic .agent .initialize (ini , stage )
8
+ newrelic .agent .initialize ()
9
9
except Exception as e :
10
10
raise Exception ('Failed to init new relic agent %s' % e )
Original file line number Diff line number Diff line change 18
18
'GUNICORN_ACCESS_LOG_FILE' : '"-"' ,
19
19
'GUNICORN_ERROR_LOG_FILE' : '"-"' ,
20
20
'GUNICORN_OPTS' : '[]' ,
21
- 'NEW_RELIC_INI' : '' ,
22
- 'NEW_RELIC_STAGE' : 'dev'
21
+ 'NEW_RELIC_LICENSE_KEY' : '' ,
22
+ 'NEW_RELIC_CONFIG_FILE' : '' ,
23
+ 'NEW_RELIC_ENVIRONMENT' : 'dev'
23
24
}
24
25
25
26
Original file line number Diff line number Diff line change 9
9
# start new relic if instructed to do so
10
10
from .extras import newrelic
11
11
from .server import env
12
- newrelic .boot (env .source ('NEW_RELIC_INI' ), env .source ('NEW_RELIC_STAGE' ))
12
+ newrelic .boot (env .source ('NEW_RELIC_CONFIG_FILE' ),
13
+ env .source ('NEW_RELIC_LICENSE_KEY' ))
13
14
14
15
from .extensions import factory
15
16
factory .boot ()
You can’t perform that action at this time.
0 commit comments