mirror of
https://github.com/nabbar/golib.git
synced 2025-10-16 04:40:37 +08:00
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:

committed by
Nicolas JUHEL

parent
6ff86118fe
commit
39948566e3
@@ -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 {
|
||||
|
Reference in New Issue
Block a user