diff --git a/explorer/src/logging.rs b/explorer/src/logging.rs index 79ee3e2e4f..e3cd4578d5 100644 --- a/explorer/src/logging.rs +++ b/explorer/src/logging.rs @@ -166,7 +166,7 @@ impl LogSettings { .write(true) .append(true) .open(&path) - .map_err(|cause| Error::FileError { + .map_err(|cause| Error::File { path: path.clone(), cause, })?; @@ -236,7 +236,7 @@ pub enum Error { #[error("log format `{specified}` is not supported for this output")] FormatNotSupported { specified: LogFormat }, #[error("failed to open the log file `{}`", .path.to_string_lossy())] - FileError { + File { path: PathBuf, #[source] cause: io::Error, @@ -248,5 +248,5 @@ pub enum Error { #[error("GELF connection failed")] Gelf(tracing_gelf::BuilderError), #[error("failed to set global subscriber")] - SetGlobalSubscriberError(#[source] SetGlobalDefaultError), + SetGlobalSubscriber(#[source] SetGlobalDefaultError), }