Skip to content

feat: Log received signal when shutting down#6933

Merged
kodiakhq[bot] merged 2 commits into
mainfrom
improve-exit-log-message
Jan 19, 2023
Merged

feat: Log received signal when shutting down#6933
kodiakhq[bot] merged 2 commits into
mainfrom
improve-exit-log-message

Conversation

@hermanschaaf
Copy link
Copy Markdown
Contributor

@hermanschaaf hermanschaaf commented Jan 18, 2023

This adds a message to the log like this for SIGTERM:

2023-01-18T13:59:23Z ERR exiting with error error="received terminated signal from OS: failed to write for aws (local@/Users/hermanschaaf/code/cloudquery/cloudquery/plugins/source/aws/aws) -> sqlite (v1.1.5): failed to CloseAndRecv client: rpc error: code = Unavailable desc = error reading from server: EOF" module=cli

or this for SIGINT (no other errors in this case):

2023-01-18T13:54:37Z ERR exiting with error error="received interrupt signal from OS" module=cli

Related to:

@hermanschaaf hermanschaaf added the automerge Automatically merge once required checks pass label Jan 19, 2023
@kodiakhq kodiakhq Bot merged commit 7d9d8cd into main Jan 19, 2023
@kodiakhq kodiakhq Bot deleted the improve-exit-log-message branch January 19, 2023 11:15
kodiakhq Bot pushed a commit that referenced this pull request Jan 24, 2023
🤖 I have created a release *beep* *boop*
---


## [2.3.0](cli-v2.2.0...cli-v2.3.0) (2023-01-24)


### Features

* **cli:** Update CLI to support source v1 protocol ([#6986](#6986)) ([fe8ff12](fe8ff12))
* Log received signal when shutting down ([#6933](#6933)) ([7d9d8cd](7d9d8cd))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants