diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2021-12-13 00:47:16 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-12-13 00:47:16 -0800 |
| commit | ab0c6a84bf314e5d446c1c445d393583bbbed444 (patch) | |
| tree | b6c8654a9d5e6373f9f06c218cca5e80fb5d657f /weed/command | |
| parent | c3b73ec23b9c7831e31503ebf3a64cc2f0a3c33d (diff) | |
| parent | 34779e8f38cd9d574e7cd6fb2da6a0ab5f3fef38 (diff) | |
| download | seaweedfs-ab0c6a84bf314e5d446c1c445d393583bbbed444.tar.xz seaweedfs-ab0c6a84bf314e5d446c1c445d393583bbbed444.zip | |
Merge pull request #2503 from kmlebedev/audit_log_nonblocking
Audit log force async
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/s3.go | 3 |
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 != "" { |
