aboutsummaryrefslogtreecommitdiff
path: root/weed/command/s3.go
diff options
context:
space:
mode:
authorKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2021-12-09 19:47:16 +0500
committerKonstantin Lebedev <9497591+kmlebedev@users.noreply.github.com>2021-12-09 19:47:16 +0500
commit98251fe16aae9d3cd59d0a04435bae9280a11977 (patch)
tree2dd08e52a45002b5c9b9e6554cf47fc561c6511c /weed/command/s3.go
parent40ee9b4d7bb67aea22bd0998b4efe633db221b9b (diff)
downloadseaweedfs-98251fe16aae9d3cd59d0a04435bae9280a11977.tar.xz
seaweedfs-98251fe16aae9d3cd59d0a04435bae9280a11977.zip
non blocking audit log
Diffstat (limited to 'weed/command/s3.go')
-rw-r--r--weed/command/s3.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/command/s3.go b/weed/command/s3.go
index 19f70bdce..045fdec5b 100644
--- a/weed/command/s3.go
+++ b/weed/command/s3.go
@@ -198,6 +198,7 @@ func (s3opt *S3Options) startS3Server() bool {
if len(*s3opt.auditLogConfig) > 0 {
s3err.InitAuditLog(*s3opt.auditLogConfig)
}
+ defer s3err.Logger.Close()
if *s3opt.tlsPrivateKey != "" {
glog.V(0).Infof("Start Seaweed S3 API Server %s at https port %d", util.Version(), *s3opt.port)