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:
@@ -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)
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user