forked from TrueCloudLab/frostfs-http-gw
NSPCC-762 Connection pool
- implement connection pool - wait until container creates - refactoring gw service - add config option to enable prometheus and pprof - update neofs-proto to v0.2.8
This commit is contained in:
parent
39279e4c5f
commit
746946290c
9 changed files with 337 additions and 100 deletions
|
@ -47,7 +47,7 @@ func safeLevel(lvl string) zap.AtomicLevel {
|
|||
}
|
||||
}
|
||||
|
||||
func newLogger(v *viper.Viper) (*zap.Logger, error) {
|
||||
func newLogger(v *viper.Viper) *zap.Logger {
|
||||
c := zap.NewProductionConfig()
|
||||
|
||||
c.OutputPaths = []string{"stdout"}
|
||||
|
@ -87,11 +87,11 @@ func newLogger(v *viper.Viper) (*zap.Logger, error) {
|
|||
// enable trace only for current log-level
|
||||
zap.AddStacktrace(traceLvl))
|
||||
if err != nil {
|
||||
return nil, err
|
||||
panic(err)
|
||||
}
|
||||
|
||||
if v.GetBool("logger.no_disclaimer") {
|
||||
return l, nil
|
||||
return l
|
||||
}
|
||||
|
||||
name := v.GetString("app.name")
|
||||
|
@ -99,7 +99,7 @@ func newLogger(v *viper.Viper) (*zap.Logger, error) {
|
|||
|
||||
return l.With(
|
||||
zap.String("app_name", name),
|
||||
zap.String("app_version", version)), nil
|
||||
zap.String("app_version", version))
|
||||
}
|
||||
|
||||
func (z *zapLogger) Info(args ...interface{}) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue