docker: Extract complement logs on failure.

docker: Sort config options used during complement.

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk
2025-07-27 01:26:44 +00:00
parent df7cd58618
commit f04924d6be
6 changed files with 109 additions and 67 deletions

View File

@@ -73,7 +73,9 @@ impl ConsoleFormat {
#[must_use]
pub fn new(config: &Config) -> Self {
Self {
_compact: fmt::format().compact(),
_compact: fmt::format()
.compact()
.with_ansi(config.log_colors),
full: Format::<Full>::default()
.with_thread_ids(config.log_thread_ids)

View File

@@ -29,6 +29,8 @@ pub(crate) fn init(
.map_err(|e| err!(Config("log", "{e}.")))?;
let console_layer = fmt::Layer::new()
.with_ansi(config.log_colors)
.with_thread_ids(config.log_thread_ids)
.with_span_events(console_span_events)
.event_format(ConsoleFormat::new(config))
.fmt_fields(ConsoleFormat::new(config))