파일에 직접 로깅하는 로거로 교체
This commit is contained in:
@ -7,8 +7,6 @@ import (
|
||||
"reflect"
|
||||
"sync"
|
||||
|
||||
"repositories.action2quare.com/ayo/gocommon/logger"
|
||||
|
||||
"repositories.action2quare.com/ayo/houston/shared"
|
||||
"repositories.action2quare.com/ayo/houston/shared/protos"
|
||||
)
|
||||
@ -75,7 +73,7 @@ func (sp *hostPool) regist(desc *protos.OperationQueryRequest) (string, chan *op
|
||||
sp.hosts[desc.Hostname] = host
|
||||
|
||||
test, _ := json.Marshal(sp.hosts)
|
||||
logger.Println(string(test))
|
||||
shared.Logger().Println(string(test))
|
||||
return desc.Hostname, host.opChan
|
||||
}
|
||||
|
||||
@ -90,7 +88,7 @@ func (sp *hostPool) refresh(desc *protos.OperationQueryRequest) {
|
||||
}
|
||||
|
||||
test, _ := json.Marshal(sp.hosts)
|
||||
logger.Println(string(test))
|
||||
shared.Logger().Println(string(test))
|
||||
}
|
||||
|
||||
func (sp *hostPool) unregist(key string) {
|
||||
|
||||
Reference in New Issue
Block a user