Skip to content

Commit

Permalink
Upgrade: Bump @razee/kubernetes-util from 0.1.5 to 0.1.6 (#180)
Browse files Browse the repository at this point in the history
* Upgrade: Bump @razee/kubernetes-util from 0.1.5 to 0.1.6

Bumps [@razee/kubernetes-util](https://github.com/razee-io/kubernetes-util) from 0.1.5 to 0.1.6.
- [Release notes](https://github.com/razee-io/kubernetes-util/releases)
- [Commits](razee-io/Kubernetes-util@0.1.5...0.1.6)

Signed-off-by: dependabot-preview[bot] <support@dependabot.com>

* Update: add extra logging for unhandled promise rejection

Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com>
Co-authored-by: Alexander Lewitt <alewitt2@ibm.com>
Co-authored-by: Alex Lewitt <48691328+alewitt2@users.noreply.github.com>
  • Loading branch information
3 people authored Sep 29, 2020
1 parent 50c0c43 commit 74c3957
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"license": "Apache-2.0",
"dependencies": {
"@kubernetes/client-node": "^0.12.2",
"@razee/kubernetes-util": "^0.1.5",
"@razee/kubernetes-util": "^0.1.6",
"JSONStream": "^1.3.5",
"agentkeepalive": "^4.1.3",
"bunyan": "^1.8.14",
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,11 @@ async function init() {
main();
return true;
}

process.on('unhandledRejection', (reason) => {
log.error(reason, 'Unhandled promise rejection.');
});

promiseRetry({ retries: 5 },
retry => {
return init().catch(retry);
Expand Down

0 comments on commit 74c3957

Please sign in to comment.