Skip to content

Commit

Permalink
Log upload url
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jul 28, 2022
1 parent 6ae72ae commit 616a1eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/vfs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -757,6 +757,7 @@ impl AliyunDavFile {
error!(
file_id = %self.file.id,
file_name = %self.file.name,
upload_url = %upload_url,
size = self.upload_state.size,
error = %err,
"upload file chunk {} failed",
Expand Down Expand Up @@ -811,7 +812,7 @@ impl DavFile for AliyunDavFile {
}

fn write_bytes(&mut self, buf: Bytes) -> FsFuture<()> {
debug!(file_id = %self.file.id, file_name = %self.file.name, "file: write_bytes");
debug!(file_id = %self.file.id, file_name = %self.file.name, size = buf.len(), "file: write_bytes");
async move {
if self.prepare_for_upload().await? {
self.upload_state.buffer.extend_from_slice(&buf);
Expand Down

0 comments on commit 616a1eb

Please sign in to comment.