frostfs-s3-gw/cmd/s3-gw/main.go
Roman Loginov 406075aebb [#236] Add support zapjournald logger configuration
Signed-off-by: Roman Loginov <r.loginov@yadro.com>
2023-11-13 16:31:11 +03:00

20 lines
253 B
Go

package main
import (
"context"
"os/signal"
"syscall"
)
func main() {
g, _ := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM)
v := newSettings()
l := pickLogger(v)
a := newApp(g, l, v)
go a.Serve(g)
a.Wait()
}