@@ -19,18 +19,14 @@ module.exports.methods = {
1919 DeviceName : os . hostname ( ) ,
2020 AppName : appname ,
2121 ConfiguredAppName : appname ,
22- AppLocaton : process . env . PWD
22+ AppLocation : process . env . PWD
2323 } ,
2424 callback = function ( data ) {
2525 debug . write ( 'Successfully identified' ) ;
2626
2727 CONFIG . APP_DETAILS = data ;
2828
29- //start sending logs unless it's not already being sent because of exception
30-
31- if ( ! exc . excCaught ) {
32- logger . methods . start ( ) ;
33- }
29+ logger . methods . start ( ) ;
3430
3531 } ,
3632 fail = function ( ) {
@@ -56,7 +52,6 @@ module.exports.methods = {
5652 }
5753
5854 options = helpers . getOptions ( CONFIG . IDENTIFY_PATH , body , settings ? settings . proxy : undefined ) ;
59- options . headers [ 'X-Stackify-Key' ] = settings . apiKey ;
6055
6156 debug . write ( 'Identifying the app' ) ;
6257 sender . send ( options , callback , fail ) ;
@@ -82,12 +77,12 @@ module.exports.methods = {
8277 var sinceFirstError ;
8378 debug . write ( 'Sending logs failed' ) ;
8479 if ( code === 401 ) {
85- delay = CONFIG . DELAY . FIVE_MINUTES ;
80+ delay = CONFIG . DELAY . FIVE_MINUTES_DELAY ;
8681 lastApiError = new Date ( ) . getTime ( ) ;
8782 } else {
8883 lastApiError = lastApiError || new Date ( ) . getTime ( ) ;
8984 sinceFirstError = new Date ( ) . getTime ( ) - lastApiError ;
90- delay = Math . min ( Math . max ( sinceFirstError , CONFIG . DELAY . ONE_SECOND ) , CONFIG . DELAY . ONE_MINUTE ) ;
85+ delay = Math . min ( Math . max ( sinceFirstError , CONFIG . DELAY . ONE_SECOND_DELAY ) , CONFIG . DELAY . ONE_MINUTE_DELAY ) ;
9186 }
9287
9388 setTimeout ( function ( ) {
0 commit comments