Skip to content

Commit

Permalink
chore: Add error log for truncate
Browse files Browse the repository at this point in the history
  • Loading branch information
uristdwarf committed Nov 3, 2024
1 parent 08627d5 commit 51f94bf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/master/matoclserv.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2251,6 +2251,7 @@ void matoclserv_fuse_truncate(matoclserventry *eptr, PacketHeader header, const
if (status == SAUNAFS_STATUS_OK) {
serializer->serializeFuseTruncate(reply, type, messageId, attr);
} else {
safs::log_debug("matoclserv_fuse_truncate: Failed to truncate: {} (code {})", saunafs_error_string(status));
serializer->serializeFuseTruncate(reply, type, messageId, status);
}
matoclserv_createpacket(eptr, std::move(reply));
Expand Down

0 comments on commit 51f94bf

Please sign in to comment.