로그 추가
This commit is contained in:
@ -144,12 +144,13 @@ func (c *Client) sendLoop(ctx context.Context) {
|
||||
if err != nil {
|
||||
if netoperr, ok := err.(*net.OpError); ok && netoperr.Op == "dial" {
|
||||
// 접속 안됨. 파일로 남기고 끝
|
||||
logger.Println("log send bulk failed :", err)
|
||||
logger.Println("log send bulk failed. no retry :", err)
|
||||
for _, e := range sending {
|
||||
logger.Println(string(e))
|
||||
}
|
||||
} else {
|
||||
// 재시도
|
||||
logger.Println("log send bulk failed. retry :", err)
|
||||
failChan <- sending
|
||||
}
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user