Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make connection attemps more readable #570

Merged
merged 3 commits into from
Feb 7, 2023
Merged

make connection attemps more readable #570

merged 3 commits into from
Feb 7, 2023

Conversation

Despire
Copy link
Contributor

@Despire Despire commented Feb 7, 2023

closes #528

Example of the changes when the connection is unhealthy:

#initial start of the service

11:37AM INF internal/utils/log.go:37 > Using log with the level "debug" module=builder
11:37AM INF services/builder/builder.go:77 > Initiated connection Context-box: localhost:50055, waiting for connection to be in state: READY module=builder
11:37AM WRN services/builder/builder.go:124 > connection to Context-box is not READY module=builder
11:37AM DBG services/builder/builder.go:125 > connection to Context-box is IDLE, waiting for the service to be reachable module=builder
11:37AM WRN services/builder/builder.go:124 > connection to Context-box is not READY module=builder
11:37AM DBG services/builder/builder.go:125 > connection to Context-box is IDLE, waiting for the service to be reachable module=builder
11:37AM WRN services/builder/builder.go:124 > connection to Context-box is not READY module=builder
11:37AM DBG services/builder/builder.go:125 > connection to Context-box is IDLE, waiting for the service to be reachable module=builder
11:37AM INF services/builder/builder.go:120 > connection to Context-box is READY module=builder


# make contextbox fail again

11:38AM WRN services/builder/builder.go:124 > connection to Context-box is not READY module=builder
11:38AM DBG services/builder/builder.go:125 > connection to Context-box is IDLE, waiting for the service to be reachable module=builder
11:38AM WRN services/builder/builder.go:124 > connection to Context-box is not READY module=builder
11:38AM DBG services/builder/builder.go:125 > connection to Context-box is IDLE, waiting for the service to be reachable module=builder
11:38AM INF services/builder/builder.go:120 > connection to Context-box is READY module=builder

Copy link
Contributor

@MiroslavRepka MiroslavRepka left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix @Despire!

@Despire Despire merged commit 9373530 into master Feb 7, 2023
@Despire Despire deleted the fix/logging branch February 7, 2023 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Logs: Recover after error
2 participants