non blocking audit log

This commit is contained in:
Konstantin Lebedev
2021-12-09 19:47:16 +05:00
parent 40ee9b4d7b
commit 98251fe16a
3 changed files with 27 additions and 18 deletions

View File

@@ -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)