Skip to content

Commit

Permalink
CR-7645-8 (#84)
Browse files Browse the repository at this point in the history
* bumped task-logger

* bump in package.json

* yarn

* yarn
  • Loading branch information
elad-codefresh authored Dec 23, 2021
1 parent 7c91199 commit f55c676
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
6 changes: 4 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const path = require('path');
const path = require('path');
const cflogs = require('cf-logs');
const Q = require('q');

Expand All @@ -17,9 +17,11 @@ const Logger = require('./logger');

const buildFinishedPromise = Q.defer();

const taskLoggerConfig = JSON.parse(process.env.TASK_LOGGER_CONFIG);

const logger = new Logger({
loggerId: process.env.LOGGER_ID,
taskLoggerConfig: JSON.parse(process.env.TASK_LOGGER_CONFIG),
taskLoggerConfig,
findExistingContainers: process.env.LISTEN_ON_EXISTING,
logSizeLimit: process.env.LOG_SIZE_LIMIT ? (parseInt(process.env.LOG_SIZE_LIMIT, 10) * 1000000) : undefined,
buildFinishedPromise: buildFinishedPromise.promise,
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"cf-container-logger"
],
"dependencies": {
"@codefresh-io/task-logger": "^1.9.18",
"@codefresh-io/task-logger": "^1.9.22",
"body-parser": "^1.19.0",
"cf-errors": "^0.1.15",
"cf-logs": "^1.1.0",
Expand Down Expand Up @@ -52,7 +52,7 @@
"lint-fix": "eslint '*/**/*.js' --fix",
"test": "node ./node_modules/mocha/bin/_mocha './{,!(node_modules)/**/}*.spec.js' --exit",
"test:ci": "yarn test",
"start": "node server/index.js",
"start": "node lib/index.js",
"version": "exit 0"
}
}
}
2 changes: 1 addition & 1 deletion service.yaml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: 1.5.8
version: 1.5.9
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@
dependencies:
regenerator-runtime "^0.13.4"

"@codefresh-io/task-logger@^1.9.18":
version "1.9.18"
resolved "https://registry.yarnpkg.com/@codefresh-io/task-logger/-/task-logger-1.9.18.tgz#219babad0fe29d21f53fb41af07835ed872b092e"
integrity sha512-p1XV3ubqvJ/5foC3Ypf/8bwbcQSxAPV1jCHuHld4O2aigu12sHHMw4yXZVp0WcR3o9qeXNiQxzFYClVYMBhj/w==
"@codefresh-io/task-logger@^1.9.22":
version "1.9.22"
resolved "https://registry.yarnpkg.com/@codefresh-io/task-logger/-/task-logger-1.9.22.tgz#57b374558a1f350b990bb2a8c18e88e785c9b4f8"
integrity sha512-4tSJC3GiFH1HA3kfyht7m+AbGro4dx0QrY/nmIxnt/0jD6NK9F87dwgQx9j8q+pE51Le2OKA0WWyPk/s2tywcg==
dependencies:
cf-errors "^0.1.16"
debug "^4.1.1"
Expand Down

0 comments on commit f55c676

Please sign in to comment.