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

Retry connection with the backend of access logs #1100

Merged
merged 6 commits into from
Jul 17, 2024
Merged

Conversation

Keksoj
Copy link
Contributor

@Keksoj Keksoj commented Apr 17, 2024

Until now, a failure in transmitting access logs (e.g. a UNIX socket not responding/existing) would mean that Sōzu would not emit access logs anymore.

This pull request:

  • adds a revive_backend function
  • makes Sōzu startup impossible if the backend of access logs does not exist (note: if no access_logs_target is given in config.toml, it will still default to stdout)

Additionally, this PR adds error types and propagation.

@Keksoj Keksoj force-pushed the log-target-error branch from dde8b7f to edb9b94 Compare April 23, 2024 07:16
@Keksoj Keksoj force-pushed the log-target-error branch 4 times, most recently from 3c734ba to 90ab435 Compare April 24, 2024 14:30
@Keksoj Keksoj force-pushed the log-target-error branch from 90ab435 to a0c6b80 Compare May 3, 2024 08:56
@Keksoj Keksoj force-pushed the log-target-error branch from 324b7b3 to c4839d1 Compare June 17, 2024 14:26
@Keksoj Keksoj force-pushed the log-target-error branch from c4839d1 to a21766c Compare July 10, 2024 07:52
Keksoj and others added 5 commits July 11, 2024 16:38
@Keksoj Keksoj force-pushed the log-target-error branch from a21766c to b74888c Compare July 11, 2024 14:40
@Keksoj Keksoj force-pushed the log-target-error branch from 8f2d355 to 9f765c1 Compare July 17, 2024 14:22
Copy link

@llenotre llenotre left a comment

Choose a reason for hiding this comment

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

Looks good to me

@Keksoj Keksoj dismissed FlorentinDUBOIS’s stale review July 17, 2024 14:29

the PR was reviewed with @llenotre who approved of my points

@Keksoj Keksoj merged commit 97dab8d into main Jul 17, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants