File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ module.exports = function(options) {
22
22
23
23
// Events reporting
24
24
'reporting' : {
25
- 'timeout' : 180 * 1e3
25
+ 'timeout' : 180
26
26
} ,
27
27
28
28
// Authentication settings
Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ var wrench = require('wrench');
6
6
7
7
var logger = require ( "../utils/logger" ) ( "local" ) ;
8
8
9
- var LOCAL_SETTINGS_DIR = path . join (
9
+ var LOCAL_SETTINGS_DIR = process . env . WORKSPACE_CODEBOX_DIR || path . join (
10
10
process . env . HOME ,
11
11
'.codebox'
12
12
) ;
13
13
14
- var SETTINGS_FILE = process . env . WORKSPACE_CODEBOX_DIR || path . join ( LOCAL_SETTINGS_DIR , 'settings.json' )
14
+ var SETTINGS_FILE = path . join ( LOCAL_SETTINGS_DIR , 'settings.json' ) ;
15
15
16
16
// Base structure for a local workspace
17
17
// Store the workspace configuration in a file, ...
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ var init = function(config) {
38
38
var eventQueue = [ ] ;
39
39
40
40
// Send events and empty queue
41
- var sendEvents = _ . debounce ( function sendEvents ( ) {
41
+ var sendEvents = _ . debounce ( function ( ) {
42
42
logger . log ( "report" , _ . size ( eventQueue ) , "events" ) ;
43
43
44
44
// Hit hook
@@ -48,7 +48,7 @@ var init = function(config) {
48
48
eventQueue = [ ] ;
49
49
} , timeout ) ;
50
50
51
- var queueEvent = function queueEvent ( eventData ) {
51
+ var queueEvent = function ( eventData ) {
52
52
eventQueue . push ( eventData ) ;
53
53
} ;
54
54
@@ -74,7 +74,7 @@ var init = function(config) {
74
74
sendEvents ( ) ;
75
75
} ) ;
76
76
77
- logger . log ( "events are ready" ) ;
77
+ logger . log ( "events are ready, reporting is debounced to" , ( timeout / 1000 ) . toFixed ( 0 ) + "s ") ;
78
78
} ;
79
79
80
80
You can’t perform that action at this time.
0 commit comments