Clean up session file optionality for --no-session (#3230)
This commit is contained in:
@@ -691,7 +691,11 @@ pub async fn cli() -> Result<()> {
|
||||
})
|
||||
.await;
|
||||
setup_logging(
|
||||
session.session_file().file_stem().and_then(|s| s.to_str()),
|
||||
session
|
||||
.session_file()
|
||||
.as_ref()
|
||||
.and_then(|p| p.file_stem())
|
||||
.and_then(|s| s.to_str()),
|
||||
None,
|
||||
)?;
|
||||
|
||||
@@ -831,7 +835,11 @@ pub async fn cli() -> Result<()> {
|
||||
.await;
|
||||
|
||||
setup_logging(
|
||||
session.session_file().file_stem().and_then(|s| s.to_str()),
|
||||
session
|
||||
.session_file()
|
||||
.as_ref()
|
||||
.and_then(|p| p.file_stem())
|
||||
.and_then(|s| s.to_str()),
|
||||
None,
|
||||
)?;
|
||||
|
||||
@@ -950,7 +958,11 @@ pub async fn cli() -> Result<()> {
|
||||
})
|
||||
.await;
|
||||
setup_logging(
|
||||
session.session_file().file_stem().and_then(|s| s.to_str()),
|
||||
session
|
||||
.session_file()
|
||||
.as_ref()
|
||||
.and_then(|p| p.file_stem())
|
||||
.and_then(|s| s.to_str()),
|
||||
None,
|
||||
)?;
|
||||
if let Err(e) = session.interactive(None).await {
|
||||
|
||||
Reference in New Issue
Block a user