mirror of
https://github.com/asciinema/asciinema.git
synced 2025-12-15 11:17:58 +01:00
Always initialize logging when --log-file option is present
This commit is contained in:
@@ -33,6 +33,7 @@ use crate::tty::{DevTty, FixedSizeTty, NullTty, Tty};
|
||||
impl cli::Session {
|
||||
pub fn run(mut self) -> Result<ExitCode> {
|
||||
locale::check_utf8_locale()?;
|
||||
self.init_logging()?;
|
||||
|
||||
let exit_status = Runtime::new()?.block_on(self.do_run())?;
|
||||
|
||||
@@ -68,10 +69,6 @@ impl cli::Session {
|
||||
}
|
||||
}
|
||||
|
||||
if listener.is_some() || relay.is_some() {
|
||||
self.init_logging()?;
|
||||
}
|
||||
|
||||
status::info!("asciinema session started");
|
||||
|
||||
let mut no_outputs = true;
|
||||
|
||||
Reference in New Issue
Block a user