Fixed log message

This commit is contained in:
veeso
2021-03-26 21:04:04 +01:00
parent 39bcd5e83b
commit d44e2d8eb0

View File

@@ -363,11 +363,12 @@ impl FileTransferActivity {
LogLevel::Error, LogLevel::Error,
format!("Could not create file \"{}\": {}", file_path.display(), err), format!("Could not create file \"{}\": {}", file_path.display(), err),
); );
} } else {
self.log( self.log(
LogLevel::Info, LogLevel::Info,
format!("Created file \"{}\"", file_path.display()).as_str(), format!("Created file \"{}\"", file_path.display()).as_str(),
); );
}
// Reload files // Reload files
let path: PathBuf = self.local.wrkdir.clone(); let path: PathBuf = self.local.wrkdir.clone();
self.local_scan(path.as_path()); self.local_scan(path.as_path());
@@ -428,11 +429,13 @@ impl FileTransferActivity {
LogLevel::Warn, LogLevel::Warn,
format!("Could not finalize file: {}", err), format!("Could not finalize file: {}", err),
); );
} } else {
self.log( self.log(
LogLevel::Info, LogLevel::Info,
format!("Created file \"{}\"", file_path.display()).as_str(), format!("Created file \"{}\"", file_path.display())
.as_str(),
); );
}
// Reload files // Reload files
let path: PathBuf = self.remote.wrkdir.clone(); let path: PathBuf = self.remote.wrkdir.clone();
self.remote_scan(path.as_path()); self.remote_scan(path.as_path());