Package Logger :

- Fix too many open file for logger file
- Fix invalid FD for log file
- Fix bug with field into entry
- Fix race detection on testing

Package Status :
- Add capability to send short into query to received a short output without any result of component
- Add Connection Header as Close to router status return of Get
- Fix race detection into health with concurrent read/write data
- Fix race detection with update of main router

Package HTTPServer :
- Add option to disable keepalive for server
- Fix config tag error
- Fix logger usage / close

Package Config :
- Fix component using logger to implement a close
- Fix logger initialization :
  - use local var to setup new logger based on logger clone if loger still existing
  - if error while configuring new logger, do not change logger
  - closing old logger before replace it with new

Package Router :
- Fix missing ignore error return
- Fix golib logger not closed

Other :
- Bump dependencies
This commit is contained in:
Nicolas JUHEL
2022-11-04 14:26:15 +01:00
committed by Nicolas JUHEL
parent 6ff86118fe
commit 39948566e3
13 changed files with 387 additions and 116 deletions

View File

@@ -46,7 +46,7 @@ type ComponentAws interface {
SetAws(a libaws.AWS)
}
func New(drv ConfigDriver, logKey string) ComponentAws {
func New(drv ConfigDriver) ComponentAws {
return &componentAws{
ctx: nil,
get: nil,
@@ -64,8 +64,8 @@ func Register(cfg libcfg.Config, key string, cpt ComponentAws) {
cfg.ComponentSet(key, cpt)
}
func RegisterNew(cfg libcfg.Config, drv ConfigDriver, key, logKey string) {
cfg.ComponentSet(key, New(drv, logKey))
func RegisterNew(cfg libcfg.Config, drv ConfigDriver, key string) {
cfg.ComponentSet(key, New(drv))
}
func Load(getCpt libcfg.FuncComponentGet, key string) ComponentAws {