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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

Keksoj
Copy link
Member

@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 added the logs label Apr 17, 2024
@Keksoj Keksoj self-assigned this Apr 17, 2024
@Keksoj Keksoj added this to In progress in Roadmap via automation Apr 17, 2024
command/src/logging/logs.rs Outdated Show resolved Hide resolved
command/src/logging/mod.rs Outdated Show resolved Hide resolved
command/src/logging/mod.rs Outdated Show resolved Hide resolved
Roadmap automation moved this from In progress to Review in progress Apr 22, 2024
command/src/logging/logs.rs Show resolved Hide resolved
command/src/logging/logs.rs Outdated Show resolved Hide resolved
command/src/logging/logs.rs Outdated Show resolved Hide resolved
command/src/logging/logs.rs Show resolved Hide resolved
command/src/logging/logs.rs Outdated Show resolved Hide resolved
command/src/logging/logs.rs Outdated Show resolved Hide resolved
command/src/logging/logs.rs Outdated Show resolved Hide resolved
command/src/logging/logs.rs Outdated Show resolved Hide resolved
command/src/logging/logs.rs Outdated Show resolved Hide resolved
@Keksoj Keksoj force-pushed the log-target-error branch 4 times, most recently from 3c734ba to 90ab435 Compare April 24, 2024 14:30
Keksoj and others added 3 commits May 3, 2024 10:56
startup fails when access logs backend is not responding
create const DEFAULT_LOG_TARGET with value "stdout"

Co-Authored-By: Eloi DEMOLIS <eloi.demolis@clever-cloud.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Roadmap
  
Review in progress
Development

Successfully merging this pull request may close these issues.

None yet

3 participants