aboutsummaryrefslogtreecommitdiff
path: root/weed/command/s3.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/s3.go')
-rw-r--r--weed/command/s3.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/weed/command/s3.go b/weed/command/s3.go
index 19f70bdce..1a4c89dc4 100644
--- a/weed/command/s3.go
+++ b/weed/command/s3.go
@@ -197,6 +197,9 @@ func (s3opt *S3Options) startS3Server() bool {
if len(*s3opt.auditLogConfig) > 0 {
s3err.InitAuditLog(*s3opt.auditLogConfig)
+ if s3err.Logger != nil {
+ defer s3err.Logger.Close()
+ }
}
if *s3opt.tlsPrivateKey != "" {