From 4bcf8c370df772829a20d77537ed92974e7cbbd9 Mon Sep 17 00:00:00 2001 From: Zherphy Date: Fri, 22 Nov 2024 10:08:08 +0800 Subject: [PATCH] add: add-repeat-upload-check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 增加日志 --- server/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/server/server.go b/server/server.go index 81c0cbc..26d4548 100644 --- a/server/server.go +++ b/server/server.go @@ -237,6 +237,7 @@ func (s *server) uploadObject(in *batch.RequestObject, out *batch.Object) { checkInput := s.getObjectMetadataInput(s.bucket, s.key(in.OID)) _, err := s.client.GetObjectMetadata(&checkInput) if err == nil { + logrus.Infof("object already exists: %s", in.OID) return }