gin logging

This commit is contained in:
2022-09-12 09:52:44 +02:00
parent 3f443f52fd
commit f78d84dc8f
10 changed files with 183 additions and 71 deletions

View File

@@ -14,7 +14,7 @@ func Start(logger *zap.Logger) error {
deps := serverdeps.NewServerDeps(logger)
return curre.NewManager().
Register(NewGinHttpServer(logger.With(zap.String("app", "ginHttpServer")), deps)).
Register(NewStorageServer(logger.With(zap.String("app", "storageServer")), deps)).
Register(NewGinHttpServer(logger.With(zap.Namespace("ginHttpServer")), deps)).
Register(NewStorageServer(logger.With(zap.Namespace("storageServer")), deps)).
Run(ctx)
}