Bump rust toolchain to 1.92 (current stable) (#6356)
This commit is contained in:
@@ -45,8 +45,8 @@ fn setup_logging_internal(
|
||||
result = (|| {
|
||||
let log_dir = goose::logging::prepare_log_directory("cli", true)?;
|
||||
let timestamp = chrono::Local::now().format("%Y%m%d_%H%M%S").to_string();
|
||||
let log_filename = if name.is_some() {
|
||||
format!("{}-{}.log", timestamp, name.unwrap())
|
||||
let log_filename = if let Some(n) = name {
|
||||
format!("{}-{}.log", timestamp, n)
|
||||
} else {
|
||||
format!("{}.log", timestamp)
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user