Skip to content

services: log an error to java logger when health-check disabled. - #5261

Merged
zhangkun83 merged 3 commits into
grpc:masterfrom
zhangkun83:hc_disabled_warning
Jan 22, 2019
Merged

zhangkun83 merged 3 commits into
grpc:masterfrom
zhangkun83:hc_disabled_warning

Conversation

@zhangkun83

Copy link
Copy Markdown
Contributor

@zhangkun83
zhangkun83 requested a review from ejona86 January 18, 2019 23:40
@zhangkun83 zhangkun83 changed the title services: log a warning to java logger when health-check disabled. services: log an error to java logger when health-check disabled. Jan 19, 2019
if (Objects.equal(status.getCode(), Code.UNIMPLEMENTED)) {
disabled = true;
logger.log(
Level.SEVERE, "Health-check with {0} is disabled: {1}",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make it clear the status came from the server. For example, "Health-check with {0} is disabled. Server returned: {1}"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@zhangkun83 zhangkun83 added the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Jan 19, 2019
@grpc-kokoro grpc-kokoro removed the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Jan 19, 2019
@zhangkun83 zhangkun83 added the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Jan 22, 2019
@grpc-kokoro grpc-kokoro removed the kokoro:force-run Add this label to a PR to tell Kokoro to re-run all tests. Not generally necessary label Jan 22, 2019
@zhangkun83
zhangkun83 merged commit abdae25 into grpc:master Jan 22, 2019
@zhangkun83
zhangkun83 deleted the hc_disabled_warning branch January 22, 2019 23:18
@lock lock Bot locked as resolved and limited conversation to collaborators Apr 22, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants