main: Log to stderr and with line numbers
This commit is contained in:
parent
5ba6cb0954
commit
26963b88a2
1 changed files with 6 additions and 1 deletions
|
|
@ -92,7 +92,12 @@ pub fn main() -> glib::ExitCode {
|
|||
.with_default_directive(default_level.into())
|
||||
.from_env_lossy(),
|
||||
)
|
||||
.with(tracing_subscriber::fmt::Layer::default().compact())
|
||||
.with(
|
||||
tracing_subscriber::fmt::Layer::default()
|
||||
.compact()
|
||||
.with_line_number(true)
|
||||
.with_writer(std::io::stderr),
|
||||
)
|
||||
.init();
|
||||
|
||||
tracing::debug!("Logger initialized");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue