File tree 4 files changed +12
-10
lines changed
4 files changed +12
-10
lines changed Original file line number Diff line number Diff line change 1
- const path = require ( 'path' ) ;
1
+ const path = require ( 'path' ) ;
2
2
const cflogs = require ( 'cf-logs' ) ;
3
3
const Q = require ( 'q' ) ;
4
4
@@ -17,9 +17,11 @@ const Logger = require('./logger');
17
17
18
18
const buildFinishedPromise = Q . defer ( ) ;
19
19
20
+ const taskLoggerConfig = JSON . parse ( process . env . TASK_LOGGER_CONFIG ) ;
21
+
20
22
const logger = new Logger ( {
21
23
loggerId : process . env . LOGGER_ID ,
22
- taskLoggerConfig : JSON . parse ( process . env . TASK_LOGGER_CONFIG ) ,
24
+ taskLoggerConfig,
23
25
findExistingContainers : process . env . LISTEN_ON_EXISTING ,
24
26
logSizeLimit : process . env . LOG_SIZE_LIMIT ? ( parseInt ( process . env . LOG_SIZE_LIMIT , 10 ) * 1000000 ) : undefined ,
25
27
buildFinishedPromise : buildFinishedPromise . promise ,
Original file line number Diff line number Diff line change 6
6
" cf-container-logger"
7
7
],
8
8
"dependencies" : {
9
- "@codefresh-io/task-logger" : " ^1.9.18 " ,
9
+ "@codefresh-io/task-logger" : " ^1.9.22 " ,
10
10
"body-parser" : " ^1.19.0" ,
11
11
"cf-errors" : " ^0.1.15" ,
12
12
"cf-logs" : " ^1.1.0" ,
52
52
"lint-fix" : " eslint '*/**/*.js' --fix" ,
53
53
"test" : " node ./node_modules/mocha/bin/_mocha './{,!(node_modules)/**/}*.spec.js' --exit" ,
54
54
"test:ci" : " yarn test" ,
55
- "start" : " node server /index.js" ,
55
+ "start" : " node lib /index.js" ,
56
56
"version" : " exit 0"
57
57
}
58
- }
58
+ }
Original file line number Diff line number Diff line change 1
- version : 1.5.8
1
+ version : 1.5.9
Original file line number Diff line number Diff line change 38
38
dependencies :
39
39
regenerator-runtime "^0.13.4"
40
40
41
- " @codefresh-io/task-logger@^1.9.18 " :
42
- version "1.9.18 "
43
- resolved "https://registry.yarnpkg.com/@codefresh-io/task-logger/-/task-logger-1.9.18 .tgz#219babad0fe29d21f53fb41af07835ed872b092e "
44
- integrity sha512-p1XV3ubqvJ/5foC3Ypf/8bwbcQSxAPV1jCHuHld4O2aigu12sHHMw4yXZVp0WcR3o9qeXNiQxzFYClVYMBhj/w ==
41
+ " @codefresh-io/task-logger@^1.9.22 " :
42
+ version "1.9.22 "
43
+ resolved "https://registry.yarnpkg.com/@codefresh-io/task-logger/-/task-logger-1.9.22 .tgz#57b374558a1f350b990bb2a8c18e88e785c9b4f8 "
44
+ integrity sha512-4tSJC3GiFH1HA3kfyht7m+AbGro4dx0QrY/nmIxnt/0jD6NK9F87dwgQx9j8q+pE51Le2OKA0WWyPk/s2tywcg ==
45
45
dependencies :
46
46
cf-errors "^0.1.16"
47
47
debug "^4.1.1"
You can’t perform that action at this time.
0 commit comments